|
|
@ -793,7 +793,12 @@ public class AppUserServiceImpl implements AppUserService { |
|
|
|
return new Result().error(verifyResult.getMsg()); |
|
|
|
} |
|
|
|
String userState = verifyResult.getData(); |
|
|
|
|
|
|
|
/** |
|
|
|
* 代码说明: |
|
|
|
* 小程序端用户完善信息界面,提交数据前会调用{@link com.elink.esua.epdc.controller.ApiAppUserController#checkWxUnionId(TokenDto)} |
|
|
|
* 获取用户是否已绑定了微信unionId |
|
|
|
* 如果用户保存过unionId,前端不会再上送encryptedData,wxCode,iv这三个参数。 |
|
|
|
*/ |
|
|
|
if (StringUtils.isNotBlank(infoDto.getWxCode())) { |
|
|
|
String sessionKey = this.getUserSessionKey(infoDto.getWxCode()); |
|
|
|
WxMaUserInfo wxMaUserInfo = wxMaServiceUtils.normalWxMaService().getUserService().getUserInfo(sessionKey, infoDto.getEncryptedData(), infoDto.getIv()); |
|
|
@ -1008,7 +1013,7 @@ public class AppUserServiceImpl implements AppUserService { |
|
|
|
} |
|
|
|
} catch (WxErrorException e) { |
|
|
|
e.printStackTrace(); |
|
|
|
throw new RenException(e.getError().getErrorMsg()); |
|
|
|
throw new RenException("微信编码异常,请刷新页面后重试"); |
|
|
|
} |
|
|
|
return null; |
|
|
|
} |
|
|
|