上传打地鼠代码修复

This commit is contained in:
liwei1dao 2024-02-06 10:57:25 +08:00
parent f569f249dc
commit 13334c6461

View File

@ -20,6 +20,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.module = module.(*Whackamole)
this.TableName = comm.TableWhackamole
this.DB.CreateIndex(core.SqlTable(this.TableName), mongo.IndexModel{
Keys: bsonx.Doc{{Key: "uid", Value: bsonx.Int32(1)}},