Explorar el Código

平台后台-设置-运费模板-允许首件金额为0

sunxbiao hace 11 meses
padre
commit
998f37d878
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      app/validate/merchant/ShippingTemplateValidate.php

+ 2 - 2
app/validate/merchant/ShippingTemplateValidate.php

@@ -33,8 +33,8 @@ class ShippingTemplateValidate extends Validate
33 33
                 return '配送城市信息不能为空';
34 34
             if (!is_int($v['first']) || empty($v['first']) || $v['first'] < 0)
35 35
                 return '首件条件大于零的数字';
36
-            if (!is_numeric($v['first_price']) || empty($v['first_price']) || $v['first_price'] < 0)
37
-                return '首件金额必须为大于零的数字';
36
+            if (!is_numeric($v['first_price']) || $v['first_price'] < 0)
37
+                return '首件金额为不小于零的数字';
38 38
             if (!is_int($v['continue']) || ($v['continue'] < 0))
39 39
                 return '续件必须为不小于零的整数';
40 40
             if (!is_numeric($v['continue_price']) || $v['continue_price'] < 0 )