Browse Source

更新回收

郑晓宇 6 years ago
parent
commit
a8d4ff19f3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Console/Commands/recylerobots.php

+ 1 - 1
app/Console/Commands/recylerobots.php

@@ -53,7 +53,7 @@ class recylerobots extends Command
                     //检测是否在线
                     if(Gateway::isUidOnline($robot->user_id)){
                         //检测游戏是否结束
-                        $has_game = RoomUser::where("user_id", $user_id)->where("state", 1)->count();
+                        $has_game = RoomUser::where("user_id", $robot->user_id)->where("state", 1)->count();
                         if(!$has_game){
                             $message['type'] = "game_end";
                             Gateway::sendToUid($robot->user_id, json_encode($message));