Merge remote-tracking branch 'origin/hotfix/imgQu'
Showing
4 changed files
with
8 additions
and
5 deletions
@@ -65,7 +65,8 @@ class Helpers | @@ -65,7 +65,8 @@ class Helpers | ||
65 | */ | 65 | */ |
66 | public static function getImageUrl($url, $width, $height, $mode = 2) | 66 | public static function getImageUrl($url, $width, $height, $mode = 2) |
67 | { | 67 | { |
68 | - return strtr($url, array('{width}' => $width, '{height}' => $height, '{mode}' => $mode, 'http://' => '//')) . '/q/70'; | 68 | +// return strtr($url, array('{width}' => $width, '{height}' => $height, '{mode}' => $mode, 'http://' => '//')) . '/q/70'; |
69 | + return strtr($url, array('{width}' => $width, '{height}' => $height, '{mode}' => $mode, 'http://' => '//')); | ||
69 | } | 70 | } |
70 | 71 | ||
71 | /** | 72 | /** |
@@ -71,7 +71,8 @@ class Images | @@ -71,7 +71,8 @@ class Images | ||
71 | if (stripos($fileName, 'http://') !== 0) { | 71 | if (stripos($fileName, 'http://') !== 0) { |
72 | $fileName = self::template($fileName, $bucket, $mode); | 72 | $fileName = self::template($fileName, $bucket, $mode); |
73 | } | 73 | } |
74 | - return strtr($fileName, array('{width}' => $width, '{height}' => $height, '{mode}' => $mode, 'http://' => '//')) . '/q/70'; | 74 | +// return strtr($fileName, array('{width}' => $width, '{height}' => $height, '{mode}' => $mode, 'http://' => '//')) . '/q/70'; |
75 | + return strtr($fileName, array('{width}' => $width, '{height}' => $height, '{mode}' => $mode, 'http://' => '//')); | ||
75 | } | 76 | } |
76 | 77 | ||
77 | /** | 78 | /** |
@@ -72,7 +72,7 @@ class Bootstrap extends Bootstrap_Abstract | @@ -72,7 +72,7 @@ class Bootstrap extends Bootstrap_Abstract | ||
72 | $controller = 'Index'; | 72 | $controller = 'Index'; |
73 | $action = 'Index'; | 73 | $action = 'Index'; |
74 | // 三级域名 | 74 | // 三级域名 |
75 | - if (4 === $level) { | 75 | + if (3 === $level) { |
76 | $subDomain = strval($hostParts[0]); | 76 | $subDomain = strval($hostParts[0]); |
77 | switch (strtolower($subDomain)) { | 77 | switch (strtolower($subDomain)) { |
78 | case 'm': // 老版(到频道选择) | 78 | case 'm': // 老版(到频道选择) |
@@ -204,7 +204,7 @@ class DetailModel | @@ -204,7 +204,7 @@ class DetailModel | ||
204 | $totalStorageNum = 0; // 总库存数 | 204 | $totalStorageNum = 0; // 总库存数 |
205 | foreach ($baseInfo['goodsList'] as $value) { | 205 | foreach ($baseInfo['goodsList'] as $value) { |
206 | // 如果status为0,即skc下架时就跳过该商品 | 206 | // 如果status为0,即skc下架时就跳过该商品 |
207 | - if ($value['status'] === 0) { | 207 | + if ($value['status'] === 0 && $baseInfo['isLimitBuy'] !== 'Y') { |
208 | continue; | 208 | continue; |
209 | } | 209 | } |
210 | 210 | ||
@@ -314,9 +314,10 @@ class DetailModel | @@ -314,9 +314,10 @@ class DetailModel | ||
314 | ); | 314 | ); |
315 | $soldOut = ($baseInfo['status'] == 0 || $totalStorageNum === 0); | 315 | $soldOut = ($baseInfo['status'] == 0 || $totalStorageNum === 0); |
316 | $notForSale = $baseInfo['attribute'] == 2; | 316 | $notForSale = $baseInfo['attribute'] == 2; |
317 | + $willSale = ($baseInfo['showStatus'] === 1 && $baseInfo['saleStatus'] === 0); | ||
317 | 318 | ||
318 | // 显示加入购物车链接 | 319 | // 显示加入购物车链接 |
319 | - if (!$soldOut && !$notForSale) { | 320 | + if ($willSale || (!$soldOut && !$notForSale)) { |
320 | ksort($colorGroup, SORT_NUMERIC); | 321 | ksort($colorGroup, SORT_NUMERIC); |
321 | 322 | ||
322 | $result['cartInfo']['productId'] = $productId; | 323 | $result['cartInfo']['productId'] = $productId; |
-
Please register or login to post a comment