未添加商品不允许下单
This commit is contained in:
@@ -694,7 +694,7 @@ public class CartService {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cashierIds.isEmpty()) {
|
if (cashierIds.isEmpty() || cashierIds.size() == 1) {
|
||||||
responseData.put("status", "fail");
|
responseData.put("status", "fail");
|
||||||
responseData.put("msg", "购物车为空");
|
responseData.put("msg", "购物车为空");
|
||||||
responseData.put("data", new ArrayList<>());
|
responseData.put("data", new ArrayList<>());
|
||||||
|
|||||||
Reference in New Issue
Block a user