用户中心
This commit is contained in:
parent
4ecdda9468
commit
1dd87d717e
|
|
@ -469,5 +469,9 @@ func GetUserInfoByIDFromUserCenterHttp(id int) dao.User {
|
||||||
if err2 := json.Unmarshal(respBytes, &resp); err2 != nil {
|
if err2 := json.Unmarshal(respBytes, &resp); err2 != nil {
|
||||||
log.Println("GetUserInfoByIDFromUserCenterHttp json unmarshal error:", err2)
|
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
|
return resp.Data
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue