|
@@ -116,10 +116,11 @@ class ListData |
|
@@ -116,10 +116,11 @@ class ListData |
116
|
* @author sefon 2016-4-27 21:39:51
|
116
|
* @author sefon 2016-4-27 21:39:51
|
117
|
* @return array
|
117
|
* @return array
|
118
|
*/
|
118
|
*/
|
119
|
- public static function getShopCategory($shopId, $cache = 600)
|
119
|
+ public static function getShopCategory($shopId, $channel, $cache = 600)
|
120
|
{
|
120
|
{
|
121
|
$param = Yohobuy::param();
|
121
|
$param = Yohobuy::param();
|
122
|
$param['method'] = 'app.shop.getSortInfo';
|
122
|
$param['method'] = 'app.shop.getSortInfo';
|
|
|
123
|
+ $param['yh_channel'] = $channel;
|
123
|
$param['shop_id'] = $shopId;
|
124
|
$param['shop_id'] = $shopId;
|
124
|
$param['client_secret'] = Sign::getSign($param);
|
125
|
$param['client_secret'] = Sign::getSign($param);
|
125
|
return Yohobuy::get(Yohobuy::API_URL, $param);
|
126
|
return Yohobuy::get(Yohobuy::API_URL, $param);
|