Commit f92223ed by hanccc

修复无消息时报错

1 parent b3e33366
......@@ -92,12 +92,13 @@ class MessageHandler
$message = $this->sync();
if($message['AddMsgList']){
foreach ($message['AddMsgList'] as $msg) {
$content = (new Message)->make($selector, $msg);
$response = call_user_func_array($this->handler, [$content]);
$this->send($response, $content);
}
// Log::echo(json_encode($message));
}
}
private function send($word, $content)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!