Authored by 郭成尧

一个商品多个店铺关联

... ... @@ -166,6 +166,11 @@ class DetailModel
'storeName' => $baseInfo['brand']['brandName'],
'url' => Helpers::url('', array(), $baseInfo['brand']['brandDomain'])
);
// foreach ($baseInfo['brand'] as $key => $brand) {
// $result['enterStore'][$key]['img'] = Helpers::getImageUrl($brand['brandIco'], 47, 47);
// $result['enterStore'][$key]['storeName'] = $brand['brandName'];
// $result['enterStore'][$key]['url'] = Helpers::url('', array(), $brand['brandDomain']);
// }
// 为你优选的链接
$result['preferenceUrl'] = Helpers::url('/product/detail/preference', array('productSkn' => $baseInfo['erpProductId'], 'brandId' => $baseInfo['brand']['id']), '');
}
... ...