WIN-2308041133\Administrator 5 miesięcy temu
rodzic
commit
e5dd628ca4

+ 4 - 3
app/common/repositories/store/order/StoreOrderCreateRepository.php

@@ -124,6 +124,7 @@ class StoreOrderCreateRepository extends StoreOrderRepository
 
             foreach ($merchantCart['list'] as $k => $cart) {
 //                判断是否同时存在普通商品,节能油商品和礼包商品
+                @file_put_contents('quanju2.txt', json_encode($cart)."-购物车数据\r\n", 8);
                 if ($merchantCart['list'][$k]['product']['is_oil']==1){
                     $jny=true;
                 }elseif ($merchantCart['list'][$k]['product']['is_gift']==1){
@@ -132,13 +133,13 @@ class StoreOrderCreateRepository extends StoreOrderRepository
                     $pt=true;
                 }
                 if ($jny&&$pt){
-                    throw new ValidateException('不能同时存在普通商品和节能油商品');
+                    throw new ValidateException('不能同时购买普通商品和节能油商品');
                 }
                 if ($lb&&$pt){
-                    throw new ValidateException('不能同时存在礼包商品和普通商品');
+                    throw new ValidateException('不能同时购买礼包商品和普通商品');
                 }
                 if ($jny&&$lb){
-                    throw new ValidateException('不能同时存在节能油商品和礼包商品');
+                    throw new ValidateException('不能同时购买节能油商品和礼包商品');
                 }