自动订餐,不在订餐时间范围就不输出错误内容

Change-Id: I5aae573481ff1beb74dd9953ccfa14d434d67a5b
This commit is contained in:
vguanyiwgd 2024-04-23 11:23:17 +08:00
parent 95977e3cbf
commit 055b24d97e
1 changed files with 2 additions and 2 deletions

View File

@ -2266,10 +2266,10 @@ class User extends REST_Controller
$current_time = date("H:i:s");
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;
}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;
}