作者 刘锟

合并分支 'akun' 到 'master'

Akun



查看合并请求 !456
@@ -90,7 +90,6 @@ class EditDomainBt implements ShouldQueue @@ -90,7 +90,6 @@ 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);  
94 $this->output($domain_info['domain'] . ':主站编辑失败,原因:' . $e->getMessage()); 93 $this->output($domain_info['domain'] . ':主站编辑失败,原因:' . $e->getMessage());
95 } 94 }
96 95
@@ -112,7 +111,6 @@ class EditDomainBt implements ShouldQueue @@ -112,7 +111,6 @@ class EditDomainBt implements ShouldQueue
112 $this->output($domain_info['domain'] . ':amp站编辑失败,原因:' . ($rs_amp['message'] ?? '')); 111 $this->output($domain_info['domain'] . ':amp站编辑失败,原因:' . ($rs_amp['message'] ?? ''));
113 } 112 }
114 } catch (\Exception | GuzzleException $e_amp) { 113 } catch (\Exception | GuzzleException $e_amp) {
115 - errorLog('编辑amp站', $api_param_amp, $e_amp);  
116 $this->output($domain_info['domain'] . ':amp站编辑失败,原因:' . $e_amp->getMessage()); 114 $this->output($domain_info['domain'] . ':amp站编辑失败,原因:' . $e_amp->getMessage());
117 } 115 }
118 } 116 }
@@ -130,4 +128,9 @@ class EditDomainBt implements ShouldQueue @@ -130,4 +128,9 @@ class EditDomainBt implements ShouldQueue
130 echo date('Y-m-d H:i:s') . ' | ' . $message . PHP_EOL; 128 echo date('Y-m-d H:i:s') . ' | ' . $message . PHP_EOL;
131 return true; 129 return true;
132 } 130 }
  131 +
  132 + public function failed(\Exception $exception)
  133 + {
  134 + return $this->output($exception->getMessage());
  135 + }
133 } 136 }