From 552841d0f00f50ef65da090f9f4c15b4ec57fa90 Mon Sep 17 00:00:00 2001 From: liwei <2211068034@qq.com> Date: Tue, 8 Aug 2023 13:44:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E8=B4=AD=E7=89=A9=E4=B8=AD?= =?UTF-8?q?=E5=BF=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- comm/const.go | 3 +++ modules/shopcenter/modelShop.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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)}},