do modify domain m1.yohobuy.com mapi.yohobuy.com
Showing
1 changed file
with
10 additions
and
6 deletions
@@ -225,14 +225,14 @@ class DetailModel | @@ -225,14 +225,14 @@ class DetailModel | ||
225 | if (!$soldOut && !$notForSale) { | 225 | if (!$soldOut && !$notForSale) { |
226 | $result['cartInfo']['addToCartUrl'] = Helpers::url('/product/buy_' . $productId . '_' . $goodsId . '.html'); // | 226 | $result['cartInfo']['addToCartUrl'] = Helpers::url('/product/buy_' . $productId . '_' . $goodsId . '.html'); // |
227 | } | 227 | } |
228 | - // 已售磬 | ||
229 | - elseif (!$notForSale && $soldOut) { | ||
230 | - $result['cartInfo']['soldOut'] = true; | ||
231 | - } | ||
232 | // 非卖品 | 228 | // 非卖品 |
233 | - elseif (!$soldOut && $notForSale) { | 229 | + elseif ($notForSale) { |
234 | $result['cartInfo']['notForSale'] = true; | 230 | $result['cartInfo']['notForSale'] = true; |
235 | } | 231 | } |
232 | + // 已售磬 | ||
233 | + elseif ($soldOut) { | ||
234 | + $result['cartInfo']['soldOut'] = true; | ||
235 | + } | ||
236 | 236 | ||
237 | // 是否收藏 | 237 | // 是否收藏 |
238 | $result['isCollect'] = false; | 238 | $result['isCollect'] = false; |
@@ -422,7 +422,11 @@ class DetailModel | @@ -422,7 +422,11 @@ class DetailModel | ||
422 | 422 | ||
423 | // 详情配图 | 423 | // 详情配图 |
424 | if (isset($sizeInfo['productIntroBo']['productIntro'])) { | 424 | if (isset($sizeInfo['productIntroBo']['productIntro'])) { |
425 | - $productIntro = $sizeInfo['productIntroBo']['productIntro']; | 425 | + $productIntro = ''; |
426 | + if (!empty($sizeInfo['productDescBo']['phrase'])) { | ||
427 | + $productIntro .= $sizeInfo['productDescBo']['phrase']; | ||
428 | + } | ||
429 | + $productIntro .= $sizeInfo['productIntroBo']['productIntro']; | ||
426 | if ($productIntro) { | 430 | if ($productIntro) { |
427 | $result['productDetail'] = array( | 431 | $result['productDetail'] = array( |
428 | 'title' => '商品详情', | 432 | 'title' => '商品详情', |
-
Please register or login to post a comment