BF-202210271038\Administrator před 3 roky
rodič
revize
d339aee13f

+ 1 - 1
app/Jobs/BoadcastDetectionJob.php

@@ -32,6 +32,6 @@ class BoadcastDetectionJob implements ShouldQueue
      */
     public function handle()
     {
-        ContractServer::creatServer()->broadcastDetection($this->blockItem);
+        ContractServer::creatServer()->broadcastDetection();
     }
 }

+ 4 - 1
app/Jobs/ContractCommonJob.php

@@ -34,6 +34,9 @@ class ContractCommonJob implements ShouldQueue
      */
     public function handle()
     {
-        ContractServer::creatServer()->verifyContractCommon();
+        try {
+            ContractServer::creatServer()->verifyContractCommon();
+        } catch (\Exception $e) {
+        }
     }
 }

+ 1 - 1
任务.txt

@@ -1,5 +1,5 @@
 //队列 (编号监测)
-nohup php artisan queue:work redis --queue=broadcastDetection  --sleep=3 --tries=3 --timeout=120 &
+nohup php artisan queue:work redis --queue=newLevel,contractCommon  --sleep=3 --tries=3 --timeout=120 &