Procházet zdrojové kódy

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

ANG YU před 4 roky
rodič
revize
e53cf2ed6b
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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']);
     }