郑晓宇 6 年之前
父节点
当前提交
8f8f0d87e1
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      app/Console/Commands/gamematch.php
  2. 1 0
      app/Console/Commands/robot.php

+ 1 - 0
app/Console/Commands/gamematch.php

@@ -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);
                         //取消用户在房间的状态

+ 1 - 0
app/Console/Commands/robot.php

@@ -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";