shish 2 년 전
부모
커밋
2ddc4f5495
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      biz-ghs/product/classes/ProductClass.php

+ 1 - 1
biz-ghs/product/classes/ProductClass.php

@@ -1166,7 +1166,7 @@ class ProductClass extends BaseClass
         $discountPrice = floatval($discountPrice);
         $name = $productInfo->name ?? '';
         if ($discountPrice > 0) {
-            if ($discountPrice > $price) {
+            if ($discountPrice >= $price) {
                 util::fail($name . " 价格应该大于特价");
             }
         }