Authored by hf

do add product detail page check user is collected

@@ -203,6 +203,12 @@ class DetailModel @@ -203,6 +203,12 @@ class DetailModel
203 'goodsInstore' => $baseInfo['storage'], 203 'goodsInstore' => $baseInfo['storage'],
204 ); 204 );
205 205
  206 + // 是否收藏
  207 + $result['isCollect'] = false;
  208 + if (isset($baseInfo['isCollect']) && $baseInfo['isCollect'] === 'Y') {
  209 + $result['isCollect'] = true;
  210 + }
  211 +
206 // 底部简介的URL链接 212 // 底部简介的URL链接
207 $result['introUrl'] = Helpers::url('/product/intro_' . $baseInfo['erpProductId'] . '/' . $baseInfo['cnAlphabet'] . '.html'); 213 $result['introUrl'] = Helpers::url('/product/intro_' . $baseInfo['erpProductId'] . '/' . $baseInfo['cnAlphabet'] . '.html');
208 $result['id'] = $productId; 214 $result['id'] = $productId;