|
|
@@ -421,6 +421,10 @@ func ParentInfo(c *gin.Context) { |
|
|
|
e.OutErr(c, e.ERR, err1.Error()) |
|
|
|
return |
|
|
|
} |
|
|
|
var imUid = "0" |
|
|
|
if imUser != nil { |
|
|
|
imUid = strconv.FormatInt(imUser.UserId, 10) |
|
|
|
} |
|
|
|
res := md.ParentInfo{ |
|
|
|
Nickname: user.Nickname, |
|
|
|
LevelName: level.LevelName, |
|
|
@@ -429,7 +433,7 @@ func ParentInfo(c *gin.Context) { |
|
|
|
Id: utils.Int64ToStr(user.Id), |
|
|
|
Phone: user.Phone, |
|
|
|
WechatAccount: user.WechatAccount, |
|
|
|
ImUid: strconv.FormatInt(imUser.UserId, 10), |
|
|
|
ImUid: imUid, |
|
|
|
} |
|
|
|
e.OutSuc(c, res, nil) |
|
|
|
return |
|
|
|