|
|
@@ -1162,6 +1162,14 @@ class ProductClass extends BaseClass
|
|
|
if (empty($price)) {
|
|
|
util::fail('没有批发价');
|
|
|
}
|
|
|
+ $discountPrice = $productInfo->discountPrice ?? 0;
|
|
|
+ $discountPrice = floatval($discountPrice);
|
|
|
+ $name = $productInfo->name ?? '';
|
|
|
+ if ($discountPrice > 0) {
|
|
|
+ if ($discountPrice >= $price) {
|
|
|
+ util::fail($name . " 价格应该大于特价");
|
|
|
+ }
|
|
|
+ }
|
|
|
$productInfo->price = $price;
|
|
|
if (empty($skPrice)) {
|
|
|
util::fail('没有零售价');
|