|
@@ -20,6 +20,7 @@ class MemberValidator extends BaseValidator
|
|
|
'bank_front_img'=> 'required|max:150',
|
|
'bank_front_img'=> 'required|max:150',
|
|
|
'bank_back_img'=> 'required|max:150',
|
|
'bank_back_img'=> 'required|max:150',
|
|
|
'credit_score_img'=> 'required|max:150',
|
|
'credit_score_img'=> 'required|max:150',
|
|
|
|
|
+ 'token'=> 'required|max:100',
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
// 当前模型所有错误提示信息
|
|
// 当前模型所有错误提示信息
|
|
@@ -33,6 +34,7 @@ class MemberValidator extends BaseValidator
|
|
|
'mobile' => ':attribute格式不正确',
|
|
'mobile' => ':attribute格式不正确',
|
|
|
'email' => ':attribute格式不正确',
|
|
'email' => ':attribute格式不正确',
|
|
|
'username' => ':attribute格式不正确',
|
|
'username' => ':attribute格式不正确',
|
|
|
|
|
+ 'new_username' => ':attribute格式不正确',
|
|
|
'realname' => ':attribute格式不正确',
|
|
'realname' => ':attribute格式不正确',
|
|
|
'idcard' => ':attribute格式不正确',
|
|
'idcard' => ':attribute格式不正确',
|
|
|
'password' => ':attribute格式不正确',
|
|
'password' => ':attribute格式不正确',
|
|
@@ -56,6 +58,7 @@ class MemberValidator extends BaseValidator
|
|
|
'bank_back_img' => '银行卡反面',
|
|
'bank_back_img' => '银行卡反面',
|
|
|
'credit_score_img' => '信誉分截图',
|
|
'credit_score_img' => '信誉分截图',
|
|
|
'api_key' => '接口密钥参数',
|
|
'api_key' => '接口密钥参数',
|
|
|
|
|
+ 'token' => '授权TOKEN',
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
// 当前模型所有验证场景
|
|
// 当前模型所有验证场景
|
|
@@ -68,8 +71,10 @@ class MemberValidator extends BaseValidator
|
|
|
'auth'=> ['realname','idcard','idcard_front_img','idcard_back_img','idcard_hand_img','bank_front_img','bank_back_img'],
|
|
'auth'=> ['realname','idcard','idcard_front_img','idcard_back_img','idcard_hand_img','bank_front_img','bank_back_img'],
|
|
|
'business_auth'=> ['realname','idcard','idcard_front_img','idcard_back_img','idcard_hand_img'],
|
|
'business_auth'=> ['realname','idcard','idcard_front_img','idcard_back_img','idcard_hand_img'],
|
|
|
'login'=> ['username','password'],
|
|
'login'=> ['username','password'],
|
|
|
|
|
+ 'reg'=> ['username','password'],
|
|
|
'apiLogin'=> ['username','password','api_key'],
|
|
'apiLogin'=> ['username','password','api_key'],
|
|
|
'apiRegister'=> ['username','password','api_key'],
|
|
'apiRegister'=> ['username','password','api_key'],
|
|
|
|
|
+ 'apiModify'=> ['username','new_username','password','token'],
|
|
|
'forget'=> ['username','code'],
|
|
'forget'=> ['username','code'],
|
|
|
'save'=> ['username','realname','gender'],
|
|
'save'=> ['username','realname','gender'],
|
|
|
'mobile'=> ['mobile'],
|
|
'mobile'=> ['mobile'],
|