1
This commit is contained in:
parent
8585df68ce
commit
7cbb47b330
@ -549,7 +549,11 @@ func (this *guildMgr) AsyncSetGuildJob(accountId string, targetId string, guildJ
|
|||||||
guild := this.internalGetGuildByAccountId(accountId)
|
guild := this.internalGetGuildByAccountId(accountId)
|
||||||
if guild == nil {
|
if guild == nil {
|
||||||
cb(0, "")
|
cb(0, "")
|
||||||
return;
|
return
|
||||||
|
}
|
||||||
|
if !this.isValidGuildJob(guildJob) {
|
||||||
|
cb(1, "params error")
|
||||||
|
return
|
||||||
}
|
}
|
||||||
if !guild.isOwner(accountId) {
|
if !guild.isOwner(accountId) {
|
||||||
cb(0, "")
|
cb(0, "")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user