...
|
...
|
@@ -52,7 +52,7 @@ class DetailData |
|
|
$param = Yohobuy::param();
|
|
|
$param['article_id'] = $id;
|
|
|
$param['client_type'] = $clientType;
|
|
|
$param['private_key'] = Yohobuy::$privateKeyList['h5'];
|
|
|
$param['private_key'] = Yohobuy::$privateKeyList[$clientType];
|
|
|
$param['client_secret'] = Sign::getSign($param);
|
|
|
$result = Yohobuy::get(Yohobuy::SERVICE_URL . self::URI_PACKAGE_ARTICLE . 'getArticle', $param);
|
|
|
$article = $result['data'];
|
...
|
...
|
@@ -73,7 +73,7 @@ class DetailData |
|
|
$param = Yohobuy::param();
|
|
|
$param['article_id'] = $id;
|
|
|
$param['client_type'] = $clientType;
|
|
|
$param['private_key'] = Yohobuy::$privateKeyList['h5'];
|
|
|
$param['private_key'] = Yohobuy::$privateKeyList[$clientType];
|
|
|
$param['client_secret'] = Sign::getSign($param);
|
|
|
$result = Yohobuy::get(Yohobuy::SERVICE_URL . self::URI_PACKAGE_ARTICLE . 'getArticle', $param);
|
|
|
$article = $result['data'];
|
...
|
...
|
@@ -100,7 +100,7 @@ class DetailData |
|
|
$param = Yohobuy::param();
|
|
|
$param['article_id'] = $id;
|
|
|
$param['client_type'] = $clientType;
|
|
|
$param['private_key'] = Yohobuy::$privateKeyList['h5'];
|
|
|
$param['private_key'] = Yohobuy::$privateKeyList[$clientType];
|
|
|
$param['client_secret'] = Sign::getSign($param);
|
|
|
$urlList['getArticleContent'] = Yohobuy::httpBuildQuery(Yohobuy::SERVICE_URL . self::URI_PACKAGE_ARTICLE . 'getArticleContent', $param);
|
|
|
|
...
|
...
|
@@ -108,7 +108,7 @@ class DetailData |
|
|
$param = Yohobuy::param();
|
|
|
$param['article_id'] = $id;
|
|
|
$param['client_type'] = $clientType;
|
|
|
$param['private_key'] = Yohobuy::$privateKeyList['h5'];
|
|
|
$param['private_key'] = Yohobuy::$privateKeyList[$clientType];
|
|
|
$param['client_secret'] = Sign::getSign($param);
|
|
|
$urlList['getBrand'] = Yohobuy::httpBuildQuery(Yohobuy::SERVICE_URL . self::URI_PACKAGE_ARTICLE . 'getBrand', $param);
|
|
|
|
...
|
...
|
@@ -120,7 +120,7 @@ class DetailData |
|
|
$param['tags'] = $article['tag'];
|
|
|
$param['offset'] = 0;
|
|
|
$param['limit'] = 3;
|
|
|
$param['private_key'] = Yohobuy::$privateKeyList['h5'];
|
|
|
$param['private_key'] = Yohobuy::$privateKeyList[$clientType];
|
|
|
$param['client_secret'] = Sign::getSign($param);
|
|
|
$urlList['getOtherArticle'] = Yohobuy::httpBuildQuery(Yohobuy::SERVICE_URL . self::URI_PACKAGE_ARTICLE . 'getOtherArticle', $param);
|
|
|
}
|
...
|
...
|
|