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)}}, })