郑晓宇 6 년 전
부모
커밋
3db3b9b999
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Console/Commands/gamematch.php

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

@@ -54,7 +54,7 @@ class gamematch extends Command
                     $message = [
                         "type" => 'gotomatch',
                     ];
-                    if(Gateway::isOnline($robot)){
+                    if($robot && Gateway::isOnline($robot)){
                         Gateway::sendToClient($robot, $message);
                         echo "启动机器人: {$robot}\n";
                     }