未添加商品不允许下单

This commit is contained in:
2024-09-27 16:37:33 +08:00
parent 443903147b
commit a10500241e

View File

@@ -694,7 +694,7 @@ public class CartService {
return;
}
if (cashierIds.isEmpty()) {
if (cashierIds.isEmpty() || cashierIds.size() == 1) {
responseData.put("status", "fail");
responseData.put("msg", "购物车为空");
responseData.put("data", new ArrayList<>());