Browse Source

关闭小单位判断

shish 3 years ago
parent
commit
81069fadaa
1 changed files with 0 additions and 4 deletions
  1. 0 4
      biz-hd/purchase/classes/PurchaseClass.php

+ 0 - 4
biz-hd/purchase/classes/PurchaseClass.php

@@ -460,10 +460,6 @@ class PurchaseClass extends BaseClass
             $userPrice = isset($product['userPrice']) && $product['userPrice'] > 0 ? $product['userPrice'] : 0;
             $userPrice = isset($product['userPrice']) && $product['userPrice'] > 0 ? $product['userPrice'] : 0;
             $currentGhsProduct = $ghsProductData[$ghsProductId] ?? [];
             $currentGhsProduct = $ghsProductData[$ghsProductId] ?? [];
 
 
-            if (!empty($currentGhsProduct) && $userPrice > 0) {
-                util::fail('商城下单暂不支持小单位');
-            }
-
             if (!empty($currentGhsProduct)) {
             if (!empty($currentGhsProduct)) {
                 //用批发店的花材名称
                 //用批发店的花材名称
                 $itemName = $currentGhsProduct['name'] ?? '';
                 $itemName = $currentGhsProduct['name'] ?? '';