|
|
|
|
@ -2,6 +2,7 @@ package com.flossom.miniProgram.service.impl;
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
|
|
import com.flossom.common.core.constant.CacheConstants;
|
|
|
|
|
import com.flossom.common.core.constant.HttpStatus;
|
|
|
|
|
import com.flossom.common.core.constant.UserConstants;
|
|
|
|
|
import com.flossom.common.core.domain.R;
|
|
|
|
|
import com.flossom.common.core.domain.entity.*;
|
|
|
|
|
@ -257,8 +258,9 @@ public class WxUserMemberServiceImpl implements IWxUserMemberService {
|
|
|
|
|
String openid = loginUser.getWxUserMember().getOpenid();
|
|
|
|
|
WxUserMember wxUserMember = wxUserMemberMapper.selectWxUserMemberByOpenId(openid);
|
|
|
|
|
if (wxUserMember == null) {
|
|
|
|
|
logger.error("刷新用户信息失败");
|
|
|
|
|
throw new ServiceException("刷新用户信息失败");
|
|
|
|
|
logger.error("获取用户信息失败,token用户ID:{}, token用户openid:{},token用户昵称:{}",
|
|
|
|
|
loginUser.getWxUserMember().getId(), loginUser.getWxUserMember().getNickname());
|
|
|
|
|
throw new ServiceException("获取用户信息失败", HttpStatus.UNAUTHORIZED);
|
|
|
|
|
}
|
|
|
|
|
LoginUserVo loginUserVo = new LoginUserVo();
|
|
|
|
|
BeanUtils.copyProperties(wxUserMember, loginUserVo);
|
|
|
|
|
|