上传大豚鼠修复

This commit is contained in:
liwei1dao 2023-11-20 11:00:07 +08:00
parent 45dfa6d675
commit 2cf4d97582
3 changed files with 6 additions and 2 deletions

View File

@ -124,6 +124,8 @@ const (
ModuleEgghunt core.M_Modules = "egghunt" //彩蛋 ModuleEgghunt core.M_Modules = "egghunt" //彩蛋
ModuleCatchbugs core.M_Modules = "catchbugs" //捉虫子 ModuleCatchbugs core.M_Modules = "catchbugs" //捉虫子
ModuleMoonlv core.M_Modules = "moonlv" //护月等级 ModuleMoonlv core.M_Modules = "moonlv" //护月等级
ModuleWhackamole core.M_Modules = "whackamole" //大豚鼠
) )
// 数据表名定义处 // 数据表名定义处
@ -422,6 +424,8 @@ const (
TableUserLog = "userlog" TableUserLog = "userlog"
TableMoonlv = "moonlv" TableMoonlv = "moonlv"
TableWhackamole = "whackamole"
) )
// RPC服务接口定义处 // RPC服务接口定义处

View File

@ -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) { 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) err = this.MCompModel.Init(service, module, comp, options)
this.TableName = comm.TableDcolor this.TableName = comm.TableWhackamole
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)}},
}) })

View File

@ -24,7 +24,7 @@ type Whackamole struct {
// 模块名 // 模块名
func (this *Whackamole) GetType() core.M_Modules { func (this *Whackamole) GetType() core.M_Modules {
return comm.ModuleTreasureMap return comm.ModuleWhackamole
} }
// 模块初始化接口 注册用户创建角色事件 // 模块初始化接口 注册用户创建角色事件