修改小程序用户信息报错问题

This commit is contained in:
yuyang 2022-03-02 11:44:09 +08:00
parent d5bfa1ccc5
commit 376f3bd4f7

View File

@ -430,6 +430,7 @@ public class XhpcAppUserServiceImpl extends BaseService implements IXhpcAppUserU
*/
@Override
public AjaxResult appInfo(HttpServletRequest request) {
try{
LoginUser loginUser = logUserUtils.getLogUser(request);
Object version = redisService.getCacheObject("global:version");
Object servicePhone = redisService.getCacheObject("global:phone");
@ -476,10 +477,12 @@ public class XhpcAppUserServiceImpl extends BaseService implements IXhpcAppUserU
map.put("activitySize",1);
map.put("activityImg","https://xhpc-bucket1.oss-cn-hangzhou.aliyuncs.com/bunengshanchu/1.png");
map.put("socSize",redisService.getCacheObject("global:SOC"));
return AjaxResult.success(map);
}else{
return AjaxResult.error("请重新登录");
return AjaxResult.error("请重新登录",HttpStatus.USER_LOGIN);
}
}catch (Exception e){
return AjaxResult.error("请重新登录",HttpStatus.USER_LOGIN);
}
}