mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-03-11 17:20:09 +08:00
update 优化 错误的方法命名
This commit is contained in:
@@ -109,7 +109,7 @@ public class AuthController {
|
||||
* @return 结果
|
||||
*/
|
||||
@PostMapping("/social/callback")
|
||||
public R<LoginVo> socialCallback(@RequestBody LoginBody loginBody) {
|
||||
public R<Void> socialCallback(@RequestBody LoginBody loginBody) {
|
||||
// 获取第三方登录信息
|
||||
AuthResponse<AuthUser> response = SocialUtils.loginAuth(loginBody, socialProperties);
|
||||
AuthUser authUserData = response.getData();
|
||||
@@ -117,7 +117,8 @@ public class AuthController {
|
||||
if (!response.ok()) {
|
||||
return R.fail(response.getMsg());
|
||||
}
|
||||
return loginService.sociaRegister(authUserData);
|
||||
loginService.socialRegister(authUserData);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user