fix:修复push消息传参
This commit is contained in:
parent
efb69dc45e
commit
dcc016bf42
@ -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(),
|
||||
];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user