This commit is contained in:
meixiongfeng 2023-08-28 19:42:59 +08:00
commit f64ffa6b30
3 changed files with 4 additions and 3 deletions

View File

@ -332,7 +332,8 @@ const (
//开服任务
Tablekftask = "kftask"
//累充活动
TablekRecharge = "recharge"
//守护者任务
TableHerotask = "herotask"

View File

@ -22,7 +22,7 @@ type ModelRecharge struct {
func (this *ModelRecharge) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
err = this.MCompModel.Init(service, module, comp, options)
this.TableName = comm.Tablekftask
this.TableName = comm.TablekRecharge
this.module = module.(*AddRecharge)
this.DB.CreateIndex(core.SqlTable(this.TableName), mongo.IndexModel{
Keys: bsonx.Doc{{Key: "uid", Value: bsonx.Int32(1)}},

View File

@ -71,7 +71,7 @@ func (this *configureComp) getActiveReward(integral int32) (result *cfg.GameAren
this.module.Errorln(err)
} else {
for _, v := range v.(*cfg.GameArenaActiveReward).GetDataMap() {
if integral >= v.ScoreLow && integral < v.ScoreUp {
if integral >= v.ScoreLow && integral <= v.ScoreUp {
result = v
return
}