Explorar o código

临时工申请系统 防止重复生成分配数据 添加日志

ANG YU %!s(int64=4) %!d(string=hai) anos
pai
achega
e53cf2ed6b
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      app/Jobs/LaborApplyRecordJob.php

+ 2 - 0
app/Jobs/LaborApplyRecordJob.php

@@ -9,6 +9,7 @@ use Illuminate\Contracts\Queue\ShouldQueue;
 use Illuminate\Foundation\Bus\Dispatchable;
 use Illuminate\Queue\InteractsWithQueue;
 use Illuminate\Queue\SerializesModels;
+use Illuminate\Support\Facades\Log;
 
 class LaborApplyRecordJob implements ShouldQueue
 {
@@ -37,6 +38,7 @@ class LaborApplyRecordJob implements ShouldQueue
      */
     public function handle()
     {
+        Log::debug("LaborApplyRecordJob isAppend = {$this->isAppend}");
         $response = $this->service->allocationLaborToLaborCompany($this->isAppend);
         if (!$response['success']) throw new WarningException($response['error_message']);
     }