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');