@ -104,6 +104,10 @@ func GetGameUserInfo(c *gin.Context) {
// resp.RechargeUsdt = usdtInfo.TotalRecharge
// resp.WithdrawUsdt = usdtInfo.TotoalWithdraw
referUp := &common.ShareInfo{UID: uid}
db.Mysql().Get(referUp)
resp.ReferUp = referUp.UP1
db.Mysql().C().Table("users").Select("id").Where("deviceid = ?", user.DeviceId).Scan(&resp.SubAccount)
// db.Mysql().QueryAll(fmt.Sprintf("deviceid = '%s'", user.DeviceId), "", &common.PlayerDBInfo{}, &resp.SubAccount)
a.Data = resp
@ -142,6 +142,7 @@ type GetGameUserInfoResp struct {
Rtp int
WithdrawPer int
AllWithdrawPer int
ReferUp int
}
type GetGameUserInfoV1Resp struct {