|
|
|
|
@ -44,10 +44,7 @@ func getUserInfo(uid int, isNew bool) (resp values.UserInfoResp, err error) { |
|
|
|
|
resp.Activitys.WeekCard = call.ShouldShowActivityWeekCard(uid) |
|
|
|
|
resp.Activitys.LuckyShop = call.ShouldShowActivityLuckShop(uid) |
|
|
|
|
if ticker := call.GetUserValidItemsMax(uid, common.ItemDiscountTicket); ticker.ID > 0 { |
|
|
|
|
resp.Activitys.DiscountTicket = struct { |
|
|
|
|
Amount int64 |
|
|
|
|
DiscountAmount int64 |
|
|
|
|
}{Amount: ticker.Exi2, DiscountAmount: ticker.Exi1} |
|
|
|
|
resp.Activitys.DiscountTicket = &values.DiscountTicketV{Amount: ticker.Exi2, DiscountAmount: ticker.Exi1} |
|
|
|
|
} |
|
|
|
|
vip := call.GetVipCon(uid) |
|
|
|
|
var nextVip *common.ConfigVIP |
|
|
|
|
@ -140,10 +137,7 @@ func GetUserInfo(c *gin.Context) { |
|
|
|
|
resp.Activitys.WeekCard = call.ShouldShowActivityWeekCard(uid) |
|
|
|
|
resp.Activitys.LuckyShop = call.ShouldShowActivityLuckShop(uid) |
|
|
|
|
if ticker := call.GetUserValidItemsMax(uid, common.ItemDiscountTicket); ticker.ID > 0 { |
|
|
|
|
resp.Activitys.DiscountTicket = struct { |
|
|
|
|
Amount int64 |
|
|
|
|
DiscountAmount int64 |
|
|
|
|
}{Amount: ticker.Exi2, DiscountAmount: ticker.Exi1} |
|
|
|
|
resp.Activitys.DiscountTicket = &values.DiscountTicketV{Amount: ticker.Exi2, DiscountAmount: ticker.Exi1} |
|
|
|
|
} |
|
|
|
|
vip := call.GetVipCon(a.UID) |
|
|
|
|
nextVip := call.GetConfigVIPByLevel(vip.Level + 1) |
|
|
|
|
|