Commit bd5c7d57dc962297b05c82da19ef388c80c0f5a3
1 parent
7b482f57
✨ Member:社交(三方)绑定接口,增加 openid 返回
Showing
1 changed file
with
3 additions
and
3 deletions
yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/controller/app/social/AppSocialUserController.java
| ... | ... | @@ -34,11 +34,11 @@ public class AppSocialUserController { |
| 34 | 34 | |
| 35 | 35 | @PostMapping("/bind") |
| 36 | 36 | @Operation(summary = "社交绑定,使用 code 授权码") |
| 37 | - public CommonResult<Boolean> socialBind(@RequestBody @Valid AppSocialUserBindReqVO reqVO) { | |
| 37 | + public CommonResult<String> socialBind(@RequestBody @Valid AppSocialUserBindReqVO reqVO) { | |
| 38 | 38 | SocialUserBindReqDTO reqDTO = new SocialUserBindReqDTO(getLoginUserId(), UserTypeEnum.MEMBER.getValue(), |
| 39 | 39 | reqVO.getType(), reqVO.getCode(), reqVO.getState()); |
| 40 | - socialUserApi.bindSocialUser(reqDTO); | |
| 41 | - return success(true); | |
| 40 | + String openid = socialUserApi.bindSocialUser(reqDTO); | |
| 41 | + return success(openid); | |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | @DeleteMapping("/unbind") | ... | ... |