Explorar el Código

feat: NG-15: 新会员注册时增加国家与语言选项.

kevin hace 1 año
padre
commit
6ca1218805
Se han modificado 1 ficheros con 1 adiciones y 5 borrados
  1. 1 5
      common/models/forms/ShopGoodsForm.php

+ 1 - 5
common/models/forms/ShopGoodsForm.php

@@ -62,7 +62,7 @@ class ShopGoodsForm extends Model
             [['selectedIds'], 'isSelected'],
             [['sort'], 'isSort'],
             [['sellDiscount'], 'isDiscount'],
-            [['pricePv', 'sellPriceStandard'], 'isPrice'],
+            [['sellPriceStandard'], 'isPrice'],
         ];
     }
 
@@ -176,10 +176,6 @@ class ShopGoodsForm extends Model
 
     public function isPrice($attributes)
     {
-        if ($this->pricePv <= 0) {
-            $this->addError($attributes, \Yii::t('ctx', 'pvMustGreaterThanZero'));
-        }
-
         if ($this->sellPriceStandard <= 0) {
             $this->addError($attributes, \Yii::t('ctx', 'sellPriceStandardMustGreaterThanZero'));
         }