| | |
| | | } |
| | | AppletUserDecodeData appletUserDecodeData = WxUtils.encryptedData(data.getEncryptedData(), sessionKey, data.getIv()); |
| | | appletUserDecodeData.setOpenId(openid); |
| | | appUserService.wxLogin(appletUserDecodeData); |
| | | Map<String, Object> tokenInfos = securityUtils.login(null, null, authenticationManager, TAppUser.class, 3); |
| | | TAppUser appUser = appUserService.wxLogin(appletUserDecodeData); |
| | | Map<String, Object> tokenInfos = securityUtils.login(openid, appUser, authenticationManager, TAppUser.class, 3); |
| | | return ApiResult.success(tokenInfos); |
| | | } |
| | | |