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