From 75491c82d48c870368900cfd2e5effdcef197bcc Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Thu, 26 Oct 2023 17:57:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E8=A1=A8=E6=A0=BC=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- comm/const.go | 4 +++- modules/dcolor/model.go | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/comm/const.go b/comm/const.go index 5c7a8c731..08321f6a3 100644 --- a/comm/const.go +++ b/comm/const.go @@ -404,7 +404,9 @@ const ( //藏宝图 TablekTreasuremap = "treasuremap" - TableEntertainm = "entertainm" + TableDcolor = "dcolor" + TablekCanineRabbit = "caninerabbit" + TableEntertainm = "entertainm" ) // RPC服务接口定义处 diff --git a/modules/dcolor/model.go b/modules/dcolor/model.go index 4464ead93..25de1f062 100644 --- a/modules/dcolor/model.go +++ b/modules/dcolor/model.go @@ -19,7 +19,7 @@ type modelComp struct { func (this *modelComp) 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.TablekfPushGiftbag + this.TableName = comm.TableDcolor this.DB.CreateIndex(core.SqlTable(this.TableName), mongo.IndexModel{ Keys: bsonx.Doc{{Key: "uid", Value: bsonx.Int32(1)}}, })