moonsflyer 4 месяцев назад
Родитель
Сommit
559efc4076
1 измененных файлов с 4 добавлено и 5 удалено
  1. 4 5
      phalapi/src/app/Model/Home.php

+ 4 - 5
phalapi/src/app/Model/Home.php

@@ -152,18 +152,17 @@ class Home extends NotORM{
         return $info;
     }
     public function getClassidShopLists($type,$province,$name,$p){
-//        $where=['type'=>$type];
+
         $where['type'] = $type;
-//
-//        $where="type={$type} ";
         if(!empty($province)){
             $where['province'] = $province;
         }
         if(!empty($name)){
 //            $where['province'] = $province;
-//            $where .= " and name like '%{$name}%' " ;
+//            $where .= " and name like '%{$name}%' " ;  user_nickname like '%{$key}%'
         }
-        $info=\App\getClassidShopLists($where,$name,$p);
+        $where2 = "type={$type} and province='{$province}' ";
+        $info=\App\getClassidShopLists($where2,$name,$p);
         return $info;
     }
     public function getShopAddressList(){