This commit is contained in:
2025-06-26 10:10:02 +08:00
parent 1cc5f25c28
commit 2446ad8c0f

View File

@@ -22,11 +22,10 @@ class ImService extends BaseService
public function sendMessage($data, $type = MessageTypeEnum::Text->value)
{
$data['message_type'] = MessageTypeEnum::from($type)->description();
ds($this->userInfo);
GatewayClientService::getInstance()->init()->sendToUser(
$this->userId,
$this->userId === 1? 2: 1,
$this->userInfo->nick_name,
$this->userInfo['nick_name'],
json_encode($data),
);
return ['发送成功'];