shish 2 лет назад
Родитель
Сommit
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 . " 价格应该大于特价");
             }
         }