自动订餐,不在订餐时间范围就不输出错误内容
Change-Id: I5aae573481ff1beb74dd9953ccfa14d434d67a5b
This commit is contained in:
parent
95977e3cbf
commit
055b24d97e
|
@ -2266,10 +2266,10 @@ class User extends REST_Controller
|
||||||
$current_time = date("H:i:s");
|
$current_time = date("H:i:s");
|
||||||
|
|
||||||
if(empty($dateInfo['automatic_dc_start_time']) || empty($dateInfo['automatic_dc_end_time'])){
|
if(empty($dateInfo['automatic_dc_start_time']) || empty($dateInfo['automatic_dc_end_time'])){
|
||||||
$message .= "<p><span style='color: red'>预定信息:</span> ".$tomorrow_format."的{$dateInfo['dc_type_name']}不在菜谱预定时间内</p>";
|
// $message .= "<p><span style='color: red'>预定信息:</span> ".$tomorrow_format."的{$dateInfo['dc_type_name']}不在菜谱预定时间内</p>";
|
||||||
continue;
|
continue;
|
||||||
}elseif($current_time < $dateInfo['automatic_dc_start_time'] || $current_time > $dateInfo['automatic_dc_end_time']){
|
}elseif($current_time < $dateInfo['automatic_dc_start_time'] || $current_time > $dateInfo['automatic_dc_end_time']){
|
||||||
$message .= "<p><span style='color: red'>预定信息:</span> ".$tomorrow_format."的{$dateInfo['dc_type_name']}不在菜谱预定时间内</p>";
|
// $message .= "<p><span style='color: red'>预定信息:</span> ".$tomorrow_format."的{$dateInfo['dc_type_name']}不在菜谱预定时间内</p>";
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue