This commit is contained in:
77
2024-04-14 15:47:19 +08:00
parent 97d0d0d706
commit 23cdb3da2e

View File

@@ -120,6 +120,9 @@ public class IndexController {
@Log(title = "获取指定用户主页信息", businessType = BusinessType.OTHER, isSaveDb = false) @Log(title = "获取指定用户主页信息", businessType = BusinessType.OTHER, isSaveDb = false)
public R<UserInfoVo> info(Long userId){ public R<UserInfoVo> info(Long userId){
UserInfoVo res = userService.info(userId); UserInfoVo res = userService.info(userId);
if(res.getCity() == null){
res.setCity("");
}
return R.ok(res); return R.ok(res);
} }