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