From 30e38a17d1e182db33961595b41eb124908b93b5 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Fri, 18 Nov 2022 19:38:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/hero/module.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/hero/module.go b/modules/hero/module.go index 7b33dfc55..82c568271 100644 --- a/modules/hero/module.go +++ b/modules/hero/module.go @@ -458,16 +458,16 @@ func (this *Hero) NoLoginDay(uid string, day int32) { } // 检查充值和未登录天数之内抽卡是否抽中 -func (this *apiComp) CheckCondition(uid string, drawCount int32) bool { +func (this *Hero) CheckCondition(uid string, drawCount int32) bool { var ( curCount int32 update map[string]interface{} ) update = make(map[string]interface{}, 0) - defer this.module.modelRecord.ChangeHeroRecord(uid, update) - record, _ := this.module.modelRecord.GetHeroRecord(uid) + defer this.modelRecord.ChangeHeroRecord(uid, update) + record, _ := this.modelRecord.GetHeroRecord(uid) if v, ok := record.Condition["recharge"]; ok { - conf := this.module.configure.GetGlobalConf() //. + conf := this.configure.GetGlobalConf() //. if len(conf.DrawCardRechargeReward) == 2 { curCount = conf.DrawCardRechargeReward[1] } @@ -488,7 +488,7 @@ func (this *apiComp) CheckCondition(uid string, drawCount int32) bool { } } if v, ok := record.Condition["login"]; ok { - conf := this.module.configure.GetGlobalConf() //. + conf := this.configure.GetGlobalConf() //. if len(conf.DrawCardRegressionReward) == 2 { curCount = conf.DrawCardRegressionReward[1] }