fix:修复push消息传参
This commit is contained in:
parent
efb69dc45e
commit
dcc016bf42
@ -42,19 +42,18 @@ class Forward
|
|||||||
$msgType = $params['type'] ?? 1;
|
$msgType = $params['type'] ?? 1;
|
||||||
|
|
||||||
$inboxParams = [
|
$inboxParams = [
|
||||||
'requestId' => $msgId, // 消息 ID → 幂等去重
|
'requestId' => (string) $msgId, // 消息 ID → 幂等去重
|
||||||
'content' => $text, // 消息正文
|
'content' => $text, // 消息正文
|
||||||
'groupId' => $fromId, // 群/会话 ID
|
'groupId' => (string) $fromId, // 群/会话 ID
|
||||||
'groupName' => '', // 群名称(暂不可用)
|
'groupName' => $nickName, // 群名称
|
||||||
'userId' => $memId, // 发送者 ID
|
'userId' => (string) $memId, // 发送者 ID
|
||||||
'userName' => $nickName ?: $memName, // 发送者名称
|
'userName' => $memName, // 发送者名称
|
||||||
'parentId' => 0,
|
'parentId' => 0,
|
||||||
'sourceType' => 'im', // 来源: IM
|
'sourceType' => 'im', // 来源: IM
|
||||||
'targetType' => 'im',
|
'targetType' => 'im',
|
||||||
'extData' => [
|
'extData' => [
|
||||||
'source' => $source, // wx / qiwe
|
'source' => $source, // wx / qiwe
|
||||||
'type' => $msgType, // 消息类型
|
'type' => $msgType, // 消息类型
|
||||||
'memName' => $memName, // 原始成员名
|
|
||||||
],
|
],
|
||||||
'flags' => new \stdClass(),
|
'flags' => new \stdClass(),
|
||||||
];
|
];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user