diff --git a/application/index/library/new_wms/Forward.php b/application/index/library/new_wms/Forward.php index dec85f8..bfbb933 100644 --- a/application/index/library/new_wms/Forward.php +++ b/application/index/library/new_wms/Forward.php @@ -42,19 +42,18 @@ class Forward $msgType = $params['type'] ?? 1; $inboxParams = [ - 'requestId' => $msgId, // 消息 ID → 幂等去重 + 'requestId' => (string) $msgId, // 消息 ID → 幂等去重 'content' => $text, // 消息正文 - 'groupId' => $fromId, // 群/会话 ID - 'groupName' => '', // 群名称(暂不可用) - 'userId' => $memId, // 发送者 ID - 'userName' => $nickName ?: $memName, // 发送者名称 + 'groupId' => (string) $fromId, // 群/会话 ID + 'groupName' => $nickName, // 群名称 + 'userId' => (string) $memId, // 发送者 ID + 'userName' => $memName, // 发送者名称 'parentId' => 0, 'sourceType' => 'im', // 来源: IM 'targetType' => 'im', 'extData' => [ 'source' => $source, // wx / qiwe 'type' => $msgType, // 消息类型 - 'memName' => $memName, // 原始成员名 ], 'flags' => new \stdClass(), ];