This commit is contained in:
wh_zcy 2023-03-16 16:25:28 +08:00
parent 8ee109e673
commit 683fb2d72d
3 changed files with 5 additions and 2 deletions

View File

@ -180,6 +180,10 @@ func (this *SociatyMineView) CreateView(t *model.TestCase) fyne.CanvasObject {
return
}
if this.master == nil {
logrus.Errorf("会长数据是空,公会ID:%v", this.sociaty.Id)
return
}
//会长信息
pName := widget.NewEntry()
pName.Text = this.master.Name

View File

@ -110,7 +110,7 @@ func (this *User) GetUser(uid string) (user *pb.DBUser) {
if this.IsCross() {
user, err = this.getRemoteUser(uid)
if err != nil {
this.Errorln("查询远程玩家信息", err)
this.Errorf("查询远程玩家信息 tag:%v err:%v", this.service.GetTag(), err)
return nil
}
} else {

View File

@ -175,7 +175,6 @@ func (this *DB) ServerDBConn(stage string) (conn *DBConn, err error) {
if !ok {
err = fmt.Errorf("DBConn:%s on init", stage)
}
log.Debug("servers", log.Field{Key: stage, Value: this.servers[stage]})
return
}