Selaa lähdekoodia

fix(order): 移除订单验证逻辑中的冗余检查

- 删除了购物车ID数量验证逻辑
- 移除了购物车有效性交叉验证检查
- 简化了订单处理流程,提高代码可读性
shichen 3 kuukautta sitten
vanhempi
commit
1e52ad417f
1 muutettua tiedostoa jossa 0 lisäystä ja 3 poistoa
  1. 0 3
      app/controller/api/store/order/AlibabaOrder.php

+ 0 - 3
app/controller/api/store/order/AlibabaOrder.php

@@ -14,9 +14,6 @@ class AlibabaOrder
14 14
         $addressId = request()->param('address_id');
15 15
         $uid = 4895;
16 16
 
17
-        if (!($count = count($cartId)) || $count != count($cartRepository->validIntersection($cartId, $uid)))
18
-            return app('json')->fail('已失效或已下单');
19
-
20 17
         $postagePrice = 0;
21 18
 
22 19
         // 判断是否是阿里巴巴商品