Parcourir la source

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

tangyuanwang il y a 13 heures
Parent
commit
b109962ca7
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  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();