shish %!s(int64=2) %!d(string=hai) anos
pai
achega
2ddc4f5495
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
         $discountPrice = floatval($discountPrice);
         $name = $productInfo->name ?? '';
         $name = $productInfo->name ?? '';
         if ($discountPrice > 0) {
         if ($discountPrice > 0) {
-            if ($discountPrice > $price) {
+            if ($discountPrice >= $price) {
                 util::fail($name . " 价格应该大于特价");
                 util::fail($name . " 价格应该大于特价");
             }
             }
         }
         }