补充错误日志
This commit is contained in:
parent
b671dccd5b
commit
02563dfcb6
@ -15,7 +15,7 @@ import (
|
|||||||
"go.mongodb.org/mongo-driver/x/bsonx"
|
"go.mongodb.org/mongo-driver/x/bsonx"
|
||||||
)
|
)
|
||||||
|
|
||||||
///熊猫武馆数据表
|
// /熊猫武馆数据表
|
||||||
type modelPandata struct {
|
type modelPandata struct {
|
||||||
modules.MCompModel
|
modules.MCompModel
|
||||||
module *Practice
|
module *Practice
|
||||||
@ -32,7 +32,7 @@ func (this *modelPandata) Init(service core.IService, module core.IModule, comp
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
///询用户的练功房信息
|
// /询用户的练功房信息
|
||||||
func (this *modelPandata) queryUserMartialhall(uid string) (result *pb.DBPracticeRoom, err error) {
|
func (this *modelPandata) queryUserMartialhall(uid string) (result *pb.DBPracticeRoom, err error) {
|
||||||
result = &pb.DBPracticeRoom{}
|
result = &pb.DBPracticeRoom{}
|
||||||
if err = this.Get(uid, result); err != nil && err != mgo.MongodbNil {
|
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
|
return
|
||||||
}
|
}
|
||||||
if err = this.module.atlas.CheckActivatePandaAtlasCollect(uid, "100001"); err != nil {
|
if err = this.module.atlas.CheckActivatePandaAtlasCollect(uid, "100001"); err != nil {
|
||||||
|
this.module.Errorln(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -113,7 +114,7 @@ func (this *modelPandata) queryrooms(uids []string) (results []*pb.DBPracticeRoo
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
//刷新npc
|
// 刷新npc
|
||||||
func (this *modelPandata) refreshnpc(room *pb.DBPracticeRoom) (err error) {
|
func (this *modelPandata) refreshnpc(room *pb.DBPracticeRoom) (err error) {
|
||||||
var (
|
var (
|
||||||
npcs []*cfg.GameDispatch_BattleData
|
npcs []*cfg.GameDispatch_BattleData
|
||||||
|
Loading…
Reference in New Issue
Block a user