4
This commit is contained in:
@@ -55,6 +55,14 @@ func (r *User) GetUserInfo(c *gin.Context) {
|
||||
// 加载数据-预产期
|
||||
g.LoadExpectedDate(userInfo.ExpectedDate)
|
||||
|
||||
// 处理身高
|
||||
h, err := utils.StrToFloat64(userInfo.Height)
|
||||
g.Height = h
|
||||
|
||||
// 处理体重
|
||||
w, err := utils.StrToFloat64(userInfo.Weight)
|
||||
g.Height = w
|
||||
|
||||
responses.OkWithData(g, c)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user