Authored by cailing

库存判断修改

@@ -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 // 显示加入购物车链接