From 02563dfcb6cd34bbd73eb55ec10f0b850487a25a Mon Sep 17 00:00:00 2001 From: liwei <2211068034@qq.com> Date: Tue, 27 Jun 2023 14:35:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E9=94=99=E8=AF=AF=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/practice/modelPandata.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/practice/modelPandata.go b/modules/practice/modelPandata.go index ae8af4d76..e2acbc2e9 100644 --- a/modules/practice/modelPandata.go +++ b/modules/practice/modelPandata.go @@ -15,7 +15,7 @@ import ( "go.mongodb.org/mongo-driver/x/bsonx" ) -///熊猫武馆数据表 +// /熊猫武馆数据表 type modelPandata struct { modules.MCompModel module *Practice @@ -32,7 +32,7 @@ func (this *modelPandata) Init(service core.IService, module core.IModule, comp return } -///询用户的练功房信息 +// /询用户的练功房信息 func (this *modelPandata) queryUserMartialhall(uid string) (result *pb.DBPracticeRoom, err error) { result = &pb.DBPracticeRoom{} if err = this.Get(uid, result); err != nil && err != mgo.MongodbNil { @@ -64,6 +64,7 @@ func (this *modelPandata) queryUserMartialhall(uid string) (result *pb.DBPractic return } if err = this.module.atlas.CheckActivatePandaAtlasCollect(uid, "100001"); err != nil { + this.module.Errorln(err) return } } @@ -113,7 +114,7 @@ func (this *modelPandata) queryrooms(uids []string) (results []*pb.DBPracticeRoo return } -//刷新npc +// 刷新npc func (this *modelPandata) refreshnpc(room *pb.DBPracticeRoom) (err error) { var ( npcs []*cfg.GameDispatch_BattleData