|
|
@@ -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 )
|