This commit is contained in:
2025-06-26 11:00:50 +08:00
parent fd6ad71031
commit e53eeeb24f
2 changed files with 2 additions and 5 deletions

View File

@@ -76,9 +76,6 @@ class GatewayClientService
{
$message = $this->buildMessage($fromUserId, $fromUserName, $formUserAvatarColor, $msgData, $type);
Gateway::sendToUid($toUserId, $message);
ds([
$toUserId, $message
]);
}
/**

View File

@@ -40,13 +40,13 @@ class ImService extends BaseService
$this->userId,
$data['avatarColor'],
$this->userInfo['nick_name'],
$data['content'],
'单聊'. $data['content'],
);
$this->gatewayClient->broadcastMessage(
$this->userId,
$data['avatarColor'],
$this->userInfo['nick_name'],
$data['content'],
'群发'. $data['content'],
);
return ['发送成功'];
}