lizhen_gitee 1 rok temu
rodzic
commit
ab99d1b845
2 zmienionych plików z 5 dodań i 5 usunięć
  1. 3 3
      app/Http/Controllers/Controller.php
  2. 2 2
      app/Jobs/GiftJob.php

+ 3 - 3
app/Http/Controllers/Controller.php

@@ -28,7 +28,7 @@ class Controller extends BaseController
         /*$easemob = new Easemob();
         $rs = $easemob->push_text(1009,'标题','内容');
         dd($rs);*/
-        (new GiftJob(8343))->handle();
+       // (new GiftJob(8343))->handle();
     }
 
 
@@ -36,7 +36,7 @@ class Controller extends BaseController
 
     public function plantask(){
 
-        $list = DB::table('hx_gift_user_party')->where('new_task_status',0)->orderBy('id','asc')->get()->toArray();
+       /* $list = DB::table('hx_gift_user_party')->where('new_task_status',0)->orderBy('id','asc')->get()->toArray();
         //dd($list);
         //
         if(!empty($list)){
@@ -53,6 +53,6 @@ class Controller extends BaseController
             'new_task_status' => 1,
         ];
 
-        DB::table('hx_gift_user_party')->whereIn('id',$ids)->update($update);
+        DB::table('hx_gift_user_party')->whereIn('id',$ids)->update($update);*/
     }
 }

+ 2 - 2
app/Jobs/GiftJob.php

@@ -42,7 +42,7 @@ class GiftJob implements ShouldQueue
         $result = $this->goaaa();
 
 
-        if($result === false){
+        /*if($result === false){
             //防止失败
             $key = 'kgelavarel_giftjob_'.$this->msgid;
 
@@ -54,7 +54,7 @@ class GiftJob implements ShouldQueue
             }else{
                 //echo 345;
             }
-        }
+        }*/
     }
 
     public function apiLimit($apiLimit = 1, $apiLimitTime = 1000, $key = '')