Răsfoiți Sursa

[智价云] 时间设置更新

tangyuanwang 12 ore în urmă
părinte
comite
2e7d0499a0
1 a modificat fișierele cu 4 adăugiri și 0 ștergeri
  1. 4 0
      app/Http/Controllers/Manager/Personnel/NoticeConfig.php

+ 4 - 0
app/Http/Controllers/Manager/Personnel/NoticeConfig.php

@@ -105,6 +105,10 @@ class NoticeConfig extends Controller
         }
         if($open_day > 0 && empty($push_time)){
             return json_send(['code' => 'error', 'msg' => '请设置推送时间', 'data' => '']);
+            if(in_array($push_time, ['09:00', '11:00', '14:00','18:00']) == false){
+                return json_send(['code' => 'error', 'msg' => '推送时间格式错误', 'data' => '']);
+                
+            }
         }
         $data = $NoticeConfigModel->where($map)->first();
         if (!$data) {