WIN-2308041133\Administrator 5 月之前
父节点
当前提交
6bf6037748
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      app/common/repositories/store/order/StoreOrderCreateRepository.php

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

@@ -130,13 +130,13 @@ class StoreOrderCreateRepository extends StoreOrderRepository
                     $pt=true;
                 }
                 if ($jny&&$pt){
-                    return ['code' => 0, 'data' => '不能同时存在普通商品和节能油商品'];
+                    throw new ValidateException('不能同时存在普通商品和节能油商品');
                 }
                 if ($lb&&$pt){
-                    return ['code' => 0, 'data' => '不能同时存在普通商品和礼包商品'];
+                    throw new ValidateException('不能同时存在礼包商品和普通商品');
                 }
                 if ($jny&&$lb){
-                    return ['code' => 0, 'data' => '不能同时存在节能油商品和礼包商品'];
+                    throw new ValidateException('不能同时存在节能油商品和礼包商品');
                 }