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