|
|
@@ -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(){
|