|
|
@@ -76,6 +76,7 @@ class Home extends Api {
|
|
|
),
|
|
|
'getClassidShopList' => array(
|
|
|
'classid' => array('name' => 'classid', 'type' => 'int', 'default'=>'1' ,'desc' => '分类id'),
|
|
|
+ 'province'=> array('name' => 'province', 'type' => 'string', 'default'=>'' ,'desc' => '地址省份'),
|
|
|
'p' => array('name' => 'p', 'type' => 'int', 'default'=>'1' ,'desc' => '页数'),
|
|
|
),
|
|
|
);
|
|
|
@@ -493,13 +494,15 @@ class Home extends Api {
|
|
|
public function getClassidShopList() {
|
|
|
$rs = array('code' => 0, 'msg' => '', 'list' => array());
|
|
|
$classid=\App\checkNull($this->classid);
|
|
|
+ $province=\App\checkNull($this->province);
|
|
|
$p=\App\checkNull($this->p);
|
|
|
+
|
|
|
$domain=new Domain_Home();
|
|
|
|
|
|
$key="getClassidShopList_".$classid.'_'.$p;
|
|
|
$classidShopList=\App\getcaches($key);
|
|
|
if(!$classidShopList){
|
|
|
- $classidShopList = $domain->getClassidShopList($classid,$p);
|
|
|
+ $classidShopList = $domain->getClassidShopList($classid,$province,$p);
|
|
|
\App\setCaches($key,$classidShopList,2);
|
|
|
}
|
|
|
|