This commit is contained in:
aozhiwei 2024-04-09 15:56:46 +08:00
parent 7cbb47b330
commit 378aebf6b7

View File

@ -546,6 +546,10 @@ func (this *guildMgr) AsyncLeave(accountId string, cb func(int32, string, []stri
func (this *guildMgr) AsyncSetGuildJob(accountId string, targetId string, guildJob int32, func (this *guildMgr) AsyncSetGuildJob(accountId string, targetId string, guildJob int32,
cb func(int32, string)) { cb func(int32, string)) {
if accountId == targetId {
cb(0, "")
return
}
guild := this.internalGetGuildByAccountId(accountId) guild := this.internalGetGuildByAccountId(accountId)
if guild == nil { if guild == nil {
cb(0, "") cb(0, "")