diff --git a/app/Services/GatewayWorker/ImService.php b/app/Services/GatewayWorker/ImService.php index 7541ab8d..7b945211 100644 --- a/app/Services/GatewayWorker/ImService.php +++ b/app/Services/GatewayWorker/ImService.php @@ -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 ['发送成功'];