This commit is contained in:
aozhiwei 2024-04-09 15:52:24 +08:00
parent 8585df68ce
commit 7cbb47b330

View File

@ -549,7 +549,11 @@ func (this *guildMgr) AsyncSetGuildJob(accountId string, targetId string, guildJ
guild := this.internalGetGuildByAccountId(accountId)
if guild == nil {
cb(0, "")
return;
return
}
if !this.isValidGuildJob(guildJob) {
cb(1, "params error")
return
}
if !guild.isOwner(accountId) {
cb(0, "")