|
...
|
...
|
@@ -17,7 +17,7 @@ class EditDomainBt implements ShouldQueue |
|
|
|
{
|
|
|
|
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
|
|
|
|
|
|
|
public $tries = 3; // 可配置任务重试次数
|
|
|
|
public $tries = 1; // 可配置任务重试次数
|
|
|
|
|
|
|
|
protected $domain_id;
|
|
|
|
|
|
...
|
...
|
@@ -90,6 +90,7 @@ class EditDomainBt implements ShouldQueue |
|
|
|
$this->output($domain_info['domain'] . ':主站编辑失败,原因:' . ($rs['message'] ?? ''));
|
|
|
|
}
|
|
|
|
} catch (\Exception | GuzzleException $e) {
|
|
|
|
errorLog('编辑主站', $api_param, $e);
|
|
|
|
$this->output($domain_info['domain'] . ':主站编辑失败,原因:' . $e->getMessage());
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -110,8 +111,9 @@ class EditDomainBt implements ShouldQueue |
|
|
|
} else {
|
|
|
|
$this->output($domain_info['domain'] . ':amp站编辑失败,原因:' . ($rs_amp['message'] ?? ''));
|
|
|
|
}
|
|
|
|
} catch (\Exception | GuzzleException $e) {
|
|
|
|
$this->output($domain_info['domain'] . ':amp站编辑失败,原因:' . $e->getMessage());
|
|
|
|
} catch (\Exception | GuzzleException $e_amp) {
|
|
|
|
errorLog('编辑amp站', $api_param_amp, $e_amp);
|
|
|
|
$this->output($domain_info['domain'] . ':amp站编辑失败,原因:' . $e_amp->getMessage());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|