|
@@ -24,7 +24,7 @@ class UserOrderValidate extends Validate{
|
|
|
'agree_time'=>['require','regex:^\d{4}-\d{2}-\d{2} \d{2}:\d{2}-\d{2}:\d{2}$'],
|
|
|
'pet_category'=>['require','integer','gt:0'],
|
|
|
'num'=>['require','integer','gt:0'],
|
|
|
- 'weight'=>['require','gt:0'],
|
|
|
+ 'weight'=>['require','gt:0','number'],
|
|
|
'spec'=>['require','gt:0','integer'],
|
|
|
'piece'=>['require','gt:0','integer'],
|
|
|
'has_cage'=>['require','in:0,1'],
|