Commit 7fc522938d1eadd09ea1a0c43413b47b92a523b7
1 parent
563985dc
fix:【SYSTEM 系统管理】社交绑定,使用 code 授权码的参数错误
Showing
1 changed file
with
2 additions
and
1 deletions
yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/socail/SocialUserController.java
| ... | ... | @@ -38,7 +38,8 @@ public class SocialUserController { |
| 38 | 38 | @PostMapping("/bind") |
| 39 | 39 | @Operation(summary = "社交绑定,使用 code 授权码") |
| 40 | 40 | public CommonResult<Boolean> socialBind(@RequestBody @Valid SocialUserBindReqVO reqVO) { |
| 41 | - socialUserService.bindSocialUser(BeanUtils.toBean(reqVO, SocialUserBindReqDTO.class) | |
| 41 | + socialUserService.bindSocialUser(new SocialUserBindReqDTO().setSocialType(reqVO.getType()) | |
| 42 | + .setCode(reqVO.getCode()).setState(reqVO.getState()) | |
| 42 | 43 | .setUserId(getLoginUserId()).setUserType(UserTypeEnum.ADMIN.getValue())); |
| 43 | 44 | return CommonResult.success(true); |
| 44 | 45 | } | ... | ... |