Explorar el Código

[智价云] 周末时间校验信息调整

tangyuanwang hace 13 horas
padre
commit
b109962ca7
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      app/Jobs/Manager/Process/SubNoticeJobs.php

+ 3 - 0
app/Jobs/Manager/Process/SubNoticeJobs.php

@@ -145,6 +145,9 @@ class SubNoticeJobs implements ShouldQueue
     {
         // 获取当时时间是星期几
         $now_week = date('w');
+        if ($now_week == 0) {
+            $now_week = 7;
+        }
         // $now_week = 1;//调试星期
         $NoticeConfigModel = new NoticeConfigModel();
         $data = $NoticeConfigModel->where(['company_id' => $company_id])->first();