This commit is contained in:
commie
2026-01-12 12:42:08 +08:00
parent c153975eed
commit 61c5192018
27 changed files with 1283 additions and 112 deletions
+4 -4
View File
@@ -154,15 +154,15 @@ class Message
* @param string $ex 扩展字段
* @return array
*/
public function sendBusinessNotification(string $sendID, string $recvID, array $data): array
public function sendBusinessNotification(string $sendID, string $recvID, array $data,string $type='user'): array
{
// 获取管理员token
$data = [
'sendUserID' => $sendID,
'recvUserID' => $recvID,
'recvGroupID' => '',
'recvUserID' => $type=='user' ? $recvID : '',
'recvGroupID' => $type=='user' ? '': $recvID,
'key' => md5(time()),
'data' =>json_encode($data),
'data' => json_encode($data),
'sendMsg' => true,
'reliabilityLevel' => 1,
];