...
|
...
|
@@ -9,38 +9,19 @@ class HotValidate extends BaseValidate |
|
|
protected $rule = [
|
|
|
'page' => 'require|integer',
|
|
|
'store_id' => 'require',
|
|
|
'store_name' => 'require',
|
|
|
'mobile' => 'require|regex:^1\d{10}$',
|
|
|
'province' => 'require',
|
|
|
'city' => 'require',
|
|
|
'region' => 'require',
|
|
|
'images' => 'require',
|
|
|
'house_id' => 'require',
|
|
|
'house_user_id' => 'require',
|
|
|
'content' => 'require',
|
|
|
'house_ids' => 'require',
|
|
|
'type' => 'require|in:1,2',
|
|
|
'red_package' => 'require',
|
|
|
'number' => 'require',
|
|
|
'deposit_id' => 'require'
|
|
|
'object_id' => 'require',
|
|
|
'store_inform_id' => 'require'
|
|
|
];
|
|
|
protected $message = [
|
|
|
'page.integer' =>'页数必须是整数',
|
|
|
'mobile.regex' =>'手机号格式错误'
|
|
|
];
|
|
|
|
|
|
protected $scene = [
|
|
|
'common' => ['page'], // 公共分页验证
|
|
|
'comment_add' => ['store_id'], // 留言提交
|
|
|
'house_comment_add' => ['house_id','house_user_id'], // 社区留言提交
|
|
|
'store_apply' => ['store_name','province','city','region','name','mobile'], // 开通社区提交
|
|
|
'store_report' => ['content'], // 举报建议提交
|
|
|
'store_edit' => ['store_icon','store_name','mobile','province','city','region','images'], // 店铺信息修改
|
|
|
'store_inform_add' => ['content','images','house_ids','type'], // 发布信息
|
|
|
'red' => ['red_package','number'], // 发布信息红包
|
|
|
'house_new' => ['house_ids'], // 绑定社区
|
|
|
'deposit_order' => ['deposit_id'], // 板币充值提交
|
|
|
'comment_list' => ['store_id','page'], // 留言列表
|
|
|
'good' => ['object_id'], // 点赞
|
|
|
'get_red_package' => ['store_inform_id'], // 商家信息id
|
|
|
];
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|