|
|
@@ -71,8 +71,8 @@ public class AuthenticationController {
|
|
|
@ApiOperation(value = "手机号密码注册")
|
|
|
public String phonePwdLogin(String phone, String code, String password, String inviteCode, Long invitor,
|
|
|
Long collectionId, String captcha, String captchaKey) {
|
|
|
- boolean verify = captchaService.verify(captcha, captchaKey);
|
|
|
- if (!verify){
|
|
|
+ boolean verify = captchaService.verify(captchaKey, captcha);
|
|
|
+ if (!verify) {
|
|
|
throw new BusinessException("验证码错误");
|
|
|
}
|
|
|
User user = userService.phoneRegister(phone, code, password, inviteCode, invitor, collectionId);
|