From 13334c6461bfeb7149295f597eba80c2966b2abe Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Tue, 6 Feb 2024 10:57:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=89=93=E5=9C=B0=E9=BC=A0?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/whackamole/model.go | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/whackamole/model.go b/modules/whackamole/model.go index a3110806c..b3c2478e4 100644 --- a/modules/whackamole/model.go +++ b/modules/whackamole/model.go @@ -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)}},