فهرست منبع

vue_admin_action

Panda 3 ماه پیش
والد
کامیت
95d534c930
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      application/api/controller/HotelCanteen.php

+ 2 - 2
application/api/controller/HotelCanteen.php

@@ -157,10 +157,10 @@ class HotelCanteen extends Api
 
         switch ($params['status']){
             case 1:
-                $query->where('get_to_time','<',time())->where('status',1);
+                $query->where('get_to_time','>',time())->where('status',1);
                 break;
             case 2:
-                $query->where('get_to_time','>=',time())->where('status',1);
+                $query->where('get_to_time','<=',time())->where('status',1);
                 break;
             case 3:
                 $query->where('status',0);