From 0047680a91b1688f384b2a7b0a12d4d6314a3f7f Mon Sep 17 00:00:00 2001 From: zhora Date: Tue, 28 Oct 2025 18:05:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/backend/handler/advertisement/advertisement.go | 5 ----- modules/backend/values/tables.go | 2 -- 2 files changed, 7 deletions(-) diff --git a/modules/backend/handler/advertisement/advertisement.go b/modules/backend/handler/advertisement/advertisement.go index c0ae016..c5c2038 100644 --- a/modules/backend/handler/advertisement/advertisement.go +++ b/modules/backend/handler/advertisement/advertisement.go @@ -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 } diff --git a/modules/backend/values/tables.go b/modules/backend/values/tables.go index feafa34..56475d1 100644 --- a/modules/backend/values/tables.go +++ b/modules/backend/values/tables.go @@ -198,10 +198,8 @@ type ADStats struct { TotalROI string `gorm:"column:total_roi;type:varchar(64);default:'';comment:总roi"` NewPayROI string `gorm:"column:new_pay_roi;type:varchar(64);default:'';comment:新增roi"` - NewRegister int `gorm:"column:new_register;default:0;type:int(11);comment:注册用户数"` ActiveDevice int `gorm:"column:active_device;default:0;type:int(11);comment:设备数"` NewWithdraw int64 `gorm:"column:new_withdraw;type:bigint(20);default:0;comment:新增退出"` - ActiveUser int `gorm:"column:active_user;default:0;type:int(11);comment:活跃用户数"` RechargeUser int `gorm:"column:recharge_user;default:0;type:int(11);comment:付费人数"` }