|
|
|
|
@ -287,11 +287,8 @@ func GetOneAD(start, end int64, cids []*int) *values.ADStats { |
|
|
|
|
// 总退出
|
|
|
|
|
one.TotalWithdraw = models.GetWithdrawAmountTotalBySQLs(start, end, common.CurrencyINR, cids...) |
|
|
|
|
|
|
|
|
|
one.NewRegister = int(models.GetNewPlayerCountBySqls(start, end, cids...)) |
|
|
|
|
one.ActiveDevice = int(models.GetDownloadCounts(&start, &end, cids...)) |
|
|
|
|
one.NewWithdraw = models.GetNewWithdrawAmount(start, end, cids...) |
|
|
|
|
oldActiveUser := models.GetOldPlayerCountBySqls(start, end, cids...) |
|
|
|
|
one.ActiveUser = one.NewRegister + int(oldActiveUser) |
|
|
|
|
newPayCount := models.GetNewPayCountBySqls(start, end, cids...) |
|
|
|
|
oldPayCount := models.GetOldPayCountBySqls(start, end, cids...) |
|
|
|
|
one.RechargeUser = int(newPayCount + oldPayCount) |
|
|
|
|
@ -374,10 +371,8 @@ func CalTotal(total, one *values.ADStats) { |
|
|
|
|
total.Profit += one.Profit |
|
|
|
|
total.TotalProfit += one.TotalProfit |
|
|
|
|
total.TotalCost += one.TotalCost |
|
|
|
|
total.NewRegister += one.NewRegister |
|
|
|
|
total.ActiveDevice += one.ActiveDevice |
|
|
|
|
total.NewWithdraw += one.NewWithdraw |
|
|
|
|
total.ActiveUser += one.ActiveUser |
|
|
|
|
total.RechargeUser += one.RechargeUser |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|