Authored by 郝肖肖

$key 不存在 用$articlekey I 服了 YOU

... ... @@ -198,6 +198,7 @@ class PlusstarData
$param = Yohobuy::param();
$param['brand_id'] = $brandInfo['data']['brand_id'];
$param['udid'] = $udid;
$param['uid'] = $uid;
$param['limit'] = 3;
$param['client_type'] = $clientType;
$param['private_key'] = Yohobuy::$privateKeyList[$clientType];
... ... @@ -205,7 +206,6 @@ class PlusstarData
$article = Yohobuy::get(Yohobuy::SERVICE_URL.self::URI_BRANDINFO_ARTICLE.'getArticleByBrand', $param);
$result['getArticleByBrand'] = empty($article['data']) ? array() : $article['data'];
// file_put_contents('../../../../../../Desktop/app/n/getArticleByBrand.txt', var_export($result['getArticleByBrand'], true));
// 是否收藏店铺
$param = Yohobuy::param();
... ... @@ -221,12 +221,6 @@ class PlusstarData
}else{
$result['getUidBrandFav'] = false;
}
// 相关资讯列表 (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) {
// $result['getArticleByBrand'] = empty($retval) ? array() : $retval;
// file_put_contents('../../../../../../Desktop/app/o/getArticleByBrand.txt', var_export($retval, true));
// });
// 新品到着列表 (6篇)
$result['getNewProduct'] = array();
... ...
... ... @@ -193,9 +193,9 @@ class IndexController extends AbstractAction
// $build[] = Helpers::formatArticle($article, true, $isApp, false, $uid);
// }
foreach ($article['data']['list']['artList'] as $articlekey =>$article) {
$build[$key] = Helpers::formatArticle($article, true, $isApp, false, $uid);
$build[$articlekey] = Helpers::formatArticle($article, true, $isApp, false, $uid);
if($this->isApp()){
$build[$articlekey]['collect']['url'] = Helpers::url('/author/index', array('id' => $id), 'guang');
$build[$articlekey]['collect']['url'] = Helpers::url('/author/index', array('id' => $id), 'guang');
}
}
$data['guang']['infos'] = $build;
... ...