完善用户信息,获取积分提示修改

master
382696293@qq.com 2 years ago
parent 82d3d9411f
commit d5c5d052ff

@ -186,7 +186,9 @@ public class WxUserMemberServiceImpl implements IWxUserMemberService {
throw new ServiceException("用户不存在"); throw new ServiceException("用户不存在");
} }
int floatScore = 0; int floatScore = 0;
Boolean isCompleteInformation = false;
if (wxUserMember.getIsCompleteInformation() == null || wxUserMember.getIsCompleteInformation() == 0) { if (wxUserMember.getIsCompleteInformation() == null || wxUserMember.getIsCompleteInformation() == 0) {
isCompleteInformation = true;
// 修改完善状态 // 修改完善状态
wxUserMember.setIsCompleteInformation(1); wxUserMember.setIsCompleteInformation(1);
List<IntegralGlobal> integralGlobalList = integralGlobalMapper.selectIntegralGlobalList(new IntegralGlobal()); List<IntegralGlobal> integralGlobalList = integralGlobalMapper.selectIntegralGlobalList(new IntegralGlobal());
@ -212,7 +214,7 @@ public class WxUserMemberServiceImpl implements IWxUserMemberService {
// 刷新用户信息 // 刷新用户信息
LoginUserVo loginUserVo = refreshWxUserInfo(); LoginUserVo loginUserVo = refreshWxUserInfo();
if (wxUserMember.getIsCompleteInformation() == 1) { if (isCompleteInformation) {
loginUserVo.setIntegralText("您已完善个人信息,获得" + floatScore + "积分"); loginUserVo.setIntegralText("您已完善个人信息,获得" + floatScore + "积分");
} }
return loginUserVo; return loginUserVo;

Loading…
Cancel
Save