Sfoglia il codice sorgente

新客取消可继续购买

gorden 4 giorni fa
parent
commit
f1583f0067
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/admin/controller/order/NewCustomerController.php

+ 1 - 1
app/admin/controller/order/NewCustomerController.php

@@ -1228,7 +1228,7 @@ class NewCustomerController extends Curd
                 }
                 // 不允许重复购买
                 if (isset($goodsAttributeJson['control']) && $goodsAttributeJson['control']['if_repeat_buy'] == 'N') {
-                    if (Order::where('join_order_member_id', $params['join_order_member_id'])->where('order_classify', 'COMBINE') > where('order_status_system', '<>', 'CANCEL')->exists()) {
+                    if (Order::where('join_order_member_id', $params['join_order_member_id'])->where('order_classify', 'COMBINE')->where('order_status_system', '<>', 'CANCEL')->exists()) {
                         throw new BusinessException('仅可购买一次');
                     }
                 }