BF-202210271038\Administrator 3 anos atrás
pai
commit
d339aee13f
3 arquivos alterados com 6 adições e 3 exclusões
  1. 1 1
      app/Jobs/BoadcastDetectionJob.php
  2. 4 1
      app/Jobs/ContractCommonJob.php
  3. 1 1
      任务.txt

+ 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 &