This commit is contained in:
liwei 2023-03-02 18:50:30 +08:00
parent 8c15368877
commit 5f79123811
3 changed files with 26 additions and 4 deletions

View File

@ -178,5 +178,25 @@
"text": "商会管理员"
},
"duration": 720
},
{
"id": "Drivethemail",
"title": {
"key": "MailTitle_Drivethemail",
"text": "好友木桩驱赶邮件"
},
"recipient": {
"key": "MailRecipient_Drivethemail",
"text": "亲爱的玩家:"
},
"content": {
"key": "MailContent_Drivethemail",
"text": "好友已将您的英雄遣送返回,特此告知"
},
"sender": {
"key": "MailSender_Drivethemail",
"text": "系统"
},
"duration": 720
}
]

View File

@ -84,7 +84,7 @@ func (this *configureComp) Init(service core.IService, module core.IModule, comp
return
}
} else {
err = fmt.Errorf("%T no is *cfg.Game_drawCard", v)
err = fmt.Errorf("%T no is *cfg.GameHeroAwaken", v)
}
})

View File

@ -817,12 +817,14 @@ func (this *ModelHero) createHero(session comm.IUserSession, heroCfgId string, c
return
}
if this.moduleHero.IsCross() {
if dbModel, err := this.moduleHero.GetDBModuleByUid(uid, this.TableName, this.Expired); err != nil {
this.moduleHero.Errorln(err)
} else {
if dbModel, err1 := this.moduleHero.GetDBModuleByUid(uid, this.TableName, this.Expired); err1 == nil {
if err = dbModel.GetList(uid, &heros); err != nil {
this.moduleHero.Errorf("err:%v", err)
return
}
} else {
this.moduleHero.Errorln(err) // 获取跨服对象失败
return
}
} else {
if err = this.GetList(uid, &heros); err != nil {