1.提交缺失的东西

This commit is contained in:
2025-09-04 15:22:56 +08:00
parent dd2b423e7d
commit 6062156d73
2 changed files with 8 additions and 2 deletions

View File

@ -98,7 +98,9 @@ class CartLogic
if (self::checkStock($cart['item_id'], $goods_num)) {
return '很抱歉,库存不足';
}
if($cart['goods_num'] >= 2){
return '每单限额两套';
}
if ($goods_num <= 0) {
$goods_num = 1;
}