自定义群组发送消息其他人收不到,但发送完之后服务器有日志记录,请问会是哪里的问题?
class MsgHandler_SayInClientGroup extends MsgHandlerBase{
public function processEvent(EventProxy $proxy,$client_id,$message_data)
{
...
$new_message_json = json_encode($new_message);
Gateway::sendToGroup($group_id ,$new_message_json);
ChatMsgDB::getInstance()->logMsg($new_message_json, __CLASS__,__LINE__,__FUNCTION__);
}
}
MsgHandler_SayInClientGroup::AutoRegister();
[Time:2024-11-13 16:25:02]{"chat_info":"3333#test06#8","time":1731486302,"msg_id":36,"type":"say"}[Type:ChatMsg][ErrorLevel4][Class:Chat\ChatCommon\ChatMsgDB][Function:logMsg][Line:88][IP:127.0.0.1]
[Time:2024-11-13 16:25:08]{"chat_info":"4444#test03#3","time":1731486308,"msg_id":37,"type":"say"}[Type:ChatMsg][ErrorLevel4][Class:Chat\ChatCommon\ChatMsgDB][Function:logMsg][Line:88][IP:127.0.0.1]
可能是其他人没加入分组,或者其他人的连接已经断开
如何快速定位排查?谢谢
记录日志
workerman现在都4了,直接升级
现在不是5了吗
稳定版好像是 4