增加 工单投递失败的日志
This commit is contained in:
parent
927377b820
commit
efd4182306
@ -7,6 +7,7 @@
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
// use Illuminate\Contracts\Queue\ShouldBeUnique;
|
||||
|
||||
@ -53,6 +54,8 @@ public function handle(): void
|
||||
}
|
||||
|
||||
if (!$response->successful()) {
|
||||
Log::debug('WorkOrder push failed', $response->json());
|
||||
|
||||
$this->workOrder->update([
|
||||
'status' => 'error'
|
||||
]);
|
||||
|
Loading…
Reference in New Issue
Block a user