Panda 3 月之前
父节点
当前提交
7fe30d992c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      application/api/controller/Hotel.php

+ 1 - 1
application/api/controller/Hotel.php

@@ -48,7 +48,7 @@ class Hotel extends Api
             }
         }
 
-        if ($params['sort_type'] == 1){
+        if ($params['sort_price'] == 1){
             $query->order('price asc');
         }else{
             $query->order('price desc');