@@ -221,6 +221,7 @@ class gamematch extends Command
if(!$is_online){
//把当前房间关闭
$update_data["is_end"] = 1;
+ $update_data["end_at"] = date('Y-m-d H:i:s');
Room::where("room_id", $room->room_id)->update($update_data);
unset($update_data);
//取消用户在房间的状态
@@ -98,6 +98,7 @@ class robot extends Command
]);
$result = json_decode($response->getBody()->getContents());
if($result->code == 400 || ($result->code == 0 && $result->info->in_game == 1)){
+ echo "断线重连中 ...";
return 0;
}
echo "client: {$client_id} 成功绑定socket\n";