用户中心

This commit is contained in:
junleea 2025-06-01 16:55:16 +08:00
parent 4ecdda9468
commit 1dd87d717e
1 changed files with 4 additions and 0 deletions

View File

@ -469,5 +469,9 @@ func GetUserInfoByIDFromUserCenterHttp(id int) dao.User {
if err2 := json.Unmarshal(respBytes, &resp); err2 != nil {
log.Println("GetUserInfoByIDFromUserCenterHttp json unmarshal error:", err2)
}
if resp.Data.ID == 0 {
log.Println("GetUserInfoByIDFromUserCenterHttp user not found, resp:", string(respBytes))
return resp.Data
}
return resp.Data
}