改进 工单投递

This commit is contained in:
iVampireSP.com 2023-01-24 11:44:47 +08:00
parent 99a7896fb1
commit 22cbc1145c
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -40,6 +40,10 @@ public function handle(): void
return;
}
if ($this->workOrder->status === 'error' && $this->type !== 'delete') {
$this->type = 'post';
}
if ($this->type == 'post') {
$response = $this->workOrder->module->http()->post('work-orders', $this->workOrder->toArray());