|
@@ -172,7 +172,7 @@ class HotelCanteen extends Api
|
|
|
$list = $query->order('id','desc')->autopage()->select();
|
|
|
foreach ($list as $key=>$val){
|
|
|
if ($val['status'] == 1){
|
|
|
- if ($val['get_to_time'] < time()){
|
|
|
+ if ($val['get_to_time'] > time()){
|
|
|
$list[$key]['status_txt'] = '待用餐';
|
|
|
}else{
|
|
|
$list[$key]['status_txt'] = '已完成';
|