增加上级信息

dev_aagame_provider
zhora 4 weeks ago
parent 3840d60389
commit ff03e97665
  1. 4
      modules/backend/handler/guser/getGameUserInfo.go
  2. 1
      modules/backend/values/gameuser.go

@ -104,6 +104,10 @@ func GetGameUserInfo(c *gin.Context) {
// resp.RechargeUsdt = usdtInfo.TotalRecharge // resp.RechargeUsdt = usdtInfo.TotalRecharge
// resp.WithdrawUsdt = usdtInfo.TotoalWithdraw // 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().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) // db.Mysql().QueryAll(fmt.Sprintf("deviceid = '%s'", user.DeviceId), "", &common.PlayerDBInfo{}, &resp.SubAccount)
a.Data = resp a.Data = resp

@ -142,6 +142,7 @@ type GetGameUserInfoResp struct {
Rtp int Rtp int
WithdrawPer int WithdrawPer int
AllWithdrawPer int AllWithdrawPer int
ReferUp int
} }
type GetGameUserInfoV1Resp struct { type GetGameUserInfoV1Resp struct {

Loading…
Cancel
Save