diff --git a/comm/const.go b/comm/const.go index d51d55ca7..6ea376cd4 100644 --- a/comm/const.go +++ b/comm/const.go @@ -334,6 +334,9 @@ const ( //守护者任务 TableHerotask = "herotask" + //购物中心 + TableShopCenter = "shopcenter" + //如梦战令 TablekfDreamwarorder = "dreamwarorder" diff --git a/modules/shopcenter/modelShop.go b/modules/shopcenter/modelShop.go index 5de0b95d3..14be22516 100644 --- a/modules/shopcenter/modelShop.go +++ b/modules/shopcenter/modelShop.go @@ -23,7 +23,7 @@ type ModelShop struct { func (this *ModelShop) 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.TableHerotask + this.TableName = comm.TableShopCenter this.module = module.(*ShopCenter) this.DB.CreateIndex(core.SqlTable(this.TableName), mongo.IndexModel{ Keys: bsonx.Doc{{Key: "uid", Value: bsonx.Int32(1)}},