Showing
1 changed file
with
1 additions
and
1 deletions
@@ -311,7 +311,7 @@ class DetailModel | @@ -311,7 +311,7 @@ class DetailModel | ||
311 | 'numInCart' => 0, | 311 | 'numInCart' => 0, |
312 | 'goodsInstore' => $baseInfo['storage'], // 库存量 | 312 | 'goodsInstore' => $baseInfo['storage'], // 库存量 |
313 | ); | 313 | ); |
314 | - $soldOut = ($baseInfo['storage'] == 0) || ($baseInfo['status'] == 0 || $totalStorageNum === 0); | 314 | + $soldOut = ($baseInfo['status'] == 0 || $totalStorageNum === 0); |
315 | $notForSale = $baseInfo['attribute'] == 2; | 315 | $notForSale = $baseInfo['attribute'] == 2; |
316 | 316 | ||
317 | // 显示加入购物车链接 | 317 | // 显示加入购物车链接 |
-
Please register or login to post a comment