作者 刘锟

合并分支 'akun' 到 'master'

Akun



查看合并请求 !455
@@ -17,7 +17,7 @@ class EditDomainBt implements ShouldQueue @@ -17,7 +17,7 @@ class EditDomainBt implements ShouldQueue
17 { 17 {
18 use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; 18 use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
19 19
20 - public $tries = 3; // 可配置任务重试次数 20 + public $tries = 1; // 可配置任务重试次数
21 21
22 protected $domain_id; 22 protected $domain_id;
23 23
@@ -90,6 +90,7 @@ class EditDomainBt implements ShouldQueue @@ -90,6 +90,7 @@ class EditDomainBt implements ShouldQueue
90 $this->output($domain_info['domain'] . ':主站编辑失败,原因:' . ($rs['message'] ?? '')); 90 $this->output($domain_info['domain'] . ':主站编辑失败,原因:' . ($rs['message'] ?? ''));
91 } 91 }
92 } catch (\Exception | GuzzleException $e) { 92 } catch (\Exception | GuzzleException $e) {
  93 + errorLog('编辑主站', $api_param, $e);
93 $this->output($domain_info['domain'] . ':主站编辑失败,原因:' . $e->getMessage()); 94 $this->output($domain_info['domain'] . ':主站编辑失败,原因:' . $e->getMessage());
94 } 95 }
95 96
@@ -110,8 +111,9 @@ class EditDomainBt implements ShouldQueue @@ -110,8 +111,9 @@ class EditDomainBt implements ShouldQueue
110 } else { 111 } else {
111 $this->output($domain_info['domain'] . ':amp站编辑失败,原因:' . ($rs_amp['message'] ?? '')); 112 $this->output($domain_info['domain'] . ':amp站编辑失败,原因:' . ($rs_amp['message'] ?? ''));
112 } 113 }
113 - } catch (\Exception | GuzzleException $e) {  
114 - $this->output($domain_info['domain'] . ':amp站编辑失败,原因:' . $e->getMessage()); 114 + } catch (\Exception | GuzzleException $e_amp) {
  115 + errorLog('编辑amp站', $api_param_amp, $e_amp);
  116 + $this->output($domain_info['domain'] . ':amp站编辑失败,原因:' . $e_amp->getMessage());
115 } 117 }
116 } 118 }
117 119