定时任务,每天23:50,每个服插入一条数据为0的第二天的充值数据2

master
czx 2023-04-21 17:05:49 +08:00
parent 513c2696d4
commit 4b43d2a7c8
1 changed files with 1 additions and 0 deletions

View File

@ -958,6 +958,7 @@ func initServerPayInfo() {
statisticalRecharge := gameinfo.StatisticalRecharge{}
tomorrow := time.Now().AddDate(0, 0, 1).Format("2006-01-02")
statisticalRecharge.CreatDay = tomorrow
statisticalRecharge.Id = primitive.NewObjectID()
//统计新增充值(当日注册且付费的人数和金额、付费次数)
statisticalRecharge.NewRechargeNum = gconv.Int(0)
statisticalRecharge.NewRechargeAmount = gconv.Float64(0)