moonsflyer 5 months ago
parent
commit
559efc4076
1 changed files with 4 additions and 5 deletions
  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;
         return $info;
     }
     }
     public function getClassidShopLists($type,$province,$name,$p){
     public function getClassidShopLists($type,$province,$name,$p){
-//        $where=['type'=>$type];
+
         $where['type'] = $type;
         $where['type'] = $type;
-//
-//        $where="type={$type} ";
         if(!empty($province)){
         if(!empty($province)){
             $where['province'] = $province;
             $where['province'] = $province;
         }
         }
         if(!empty($name)){
         if(!empty($name)){
 //            $where['province'] = $province;
 //            $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;
         return $info;
     }
     }
     public function getShopAddressList(){
     public function getShopAddressList(){