瀏覽代碼

更新机器人

郑晓宇 6 年之前
父節點
當前提交
160c80301c
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      app/Console/Commands/robot.php

+ 3 - 3
app/Console/Commands/robot.php

@@ -49,11 +49,11 @@ class robot extends Command
     public function handle()
     {
         global $argv;
-        $argv[0] = 'wk';
-        $argv[1] = "start";
-        $argv[2] = '';
         //获取机器人信息
         $user_id = $this->argument('user_id');
+        $argv[0] = 'wk'.$user_id;
+        $argv[1] = "start";
+        $argv[2] = '-d';
         if(!$user_id){
             $user = User::inRandomOrder()->select('user_id','name')->where("is_robot", 1)->where("is_login", 0)->first();
         }else{