7
This commit is contained in:
Regular → Executable
+9
-9
@@ -154,19 +154,19 @@ class Message
|
||||
* @param string $ex 扩展字段
|
||||
* @return array
|
||||
*/
|
||||
public function sendBusinessNotification(string $sendID, string $recvID, string $title, string $content, string $notificationUrl = '', string $ex = ''): array
|
||||
public function sendBusinessNotification(string $sendID, string $recvID, array $data): array
|
||||
{
|
||||
// 获取管理员token
|
||||
$adminToken = Utils::getAdminToken();
|
||||
$data = [
|
||||
'sendID' => $sendID,
|
||||
'recvID' => $recvID,
|
||||
'title' => $title,
|
||||
'content' => $content,
|
||||
'notificationUrl' => $notificationUrl,
|
||||
'ex' => $ex
|
||||
'sendUserID' => $sendID,
|
||||
'recvUserID' => $recvID,
|
||||
'recvGroupID' => '',
|
||||
'key' => md5(time()),
|
||||
'data' =>json_encode($data),
|
||||
'sendMsg' => true,
|
||||
'reliabilityLevel' => 1,
|
||||
];
|
||||
return Utils::send(Url::$sendBusinessNotification, $data, '发送业务通知失败', $adminToken);
|
||||
return Utils::send(Url::$sendBusinessNotification, $data, '发送业务通知失败');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user