|
|
@@ -16,6 +16,7 @@ class MemberValidator extends BaseValidator
|
|
|
'gender' => 'required',
|
|
|
'coin_type' => 'required',
|
|
|
'to_user_id' => 'required',
|
|
|
+ 'password' => 'required',
|
|
|
];
|
|
|
|
|
|
// 当前模型所有错误提示信息
|
|
|
@@ -44,6 +45,7 @@ class MemberValidator extends BaseValidator
|
|
|
'scene' => '验证码类型',
|
|
|
'coin_type' => '账户类型',
|
|
|
'code' => '验证码',
|
|
|
+ 'password' => '密码',
|
|
|
];
|
|
|
|
|
|
// 当前模型所有验证场景
|
|
|
@@ -56,6 +58,8 @@ class MemberValidator extends BaseValidator
|
|
|
'email_register'=> ['email','code'],
|
|
|
'mobile_register'=> ['mobile','code'],
|
|
|
'email'=> ['email','scene'],
|
|
|
+ 'email_password_login'=> ['email','password'],
|
|
|
+ 'mobile_password_login'=> ['mobile','password'],
|
|
|
'recharge'=> ['usdt'],
|
|
|
'transfer'=> ['money','coin_type','to_user_id'],
|
|
|
'withdraw'=> ['money','coin_type'],
|