...
|
...
|
@@ -198,12 +198,18 @@ class PlusstarData |
|
|
$result['getArticleByBrand'] = empty($article['data']) ? array() : $article['data'];
|
|
|
// file_put_contents('../../../../../../Desktop/app/n/getArticleByBrand.txt', var_export($result['getArticleByBrand'], true));
|
|
|
|
|
|
// // 是否收藏店铺
|
|
|
// if ($isUidOk) {
|
|
|
// Yohobuy::yarConcurrentCall(Yohobuy::SERVICE_URL . self::URI_BRANDINFO_FAVORITE, 'getUidBrandFav', array($uid, $brandInfo['data']['brand_id']), function($retval) use(&$result) {
|
|
|
// $result['getUidBrandFav'] = (isset($retval['message']) && $retval['message'] == 'favorite') ? true : false;
|
|
|
// });
|
|
|
// }
|
|
|
// 是否收藏店铺
|
|
|
$param = Yohobuy::param();
|
|
|
$param['uid'] = $uid;
|
|
|
$param['brandId'] = $brandInfo['data']['brand_id'];
|
|
|
$param['client_type'] = $clientType;
|
|
|
$param['private_key'] = Yohobuy::$privateKeyList[$clientType];
|
|
|
$param['client_secret'] = Sign::getSign($param);
|
|
|
$uidBrandFavRes = Yohobuy::get(Yohobuy::SERVICE_URL . self::URI_BRANDINFO_FAVORITE . 'getUidBrandFav', $param);
|
|
|
|
|
|
if (isset($uidBrandFavRes['code']) && $uidBrandFavRes['code'] == 200) {
|
|
|
$result['getUidBrandFav'] = true;
|
|
|
}
|
|
|
// 相关资讯列表 (3篇)
|
|
|
// $result['getArticleByBrand'] = array();
|
|
|
// Yohobuy::yarConcurrentCall(Yohobuy::PRD_SERVICE_URL . self::URI_BRANDINFO_ARTICLE, 'getArticleByBrand', array($brandInfo['data']['brand_id'], 3, $udid), function($retval) use(&$result) {
|
...
|
...
|
|