上传开服活动和累充活动bug

This commit is contained in:
liwei1dao 2023-08-28 16:53:34 +08:00
parent c3ee1c11cd
commit c206675c48
2 changed files with 3 additions and 2 deletions

View File

@ -332,7 +332,8 @@ const (
//开服任务 //开服任务
Tablekftask = "kftask" Tablekftask = "kftask"
//累充活动
TablekRecharge = "recharge"
//守护者任务 //守护者任务
TableHerotask = "herotask" 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) { 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) err = this.MCompModel.Init(service, module, comp, options)
this.TableName = comm.Tablekftask this.TableName = comm.TablekRecharge
this.module = module.(*AddRecharge) this.module = module.(*AddRecharge)
this.DB.CreateIndex(core.SqlTable(this.TableName), mongo.IndexModel{ this.DB.CreateIndex(core.SqlTable(this.TableName), mongo.IndexModel{
Keys: bsonx.Doc{{Key: "uid", Value: bsonx.Int32(1)}}, Keys: bsonx.Doc{{Key: "uid", Value: bsonx.Int32(1)}},