1
This commit is contained in:
parent
93b72d74cf
commit
0d9060ff18
@ -267,15 +267,20 @@ func (this *guildMgr) AsyncCreateGuild(accountId string, sessionId string, avata
|
||||
&rspObj,
|
||||
func(rsp f5.HttpCliResponse) {
|
||||
GetDbLogMgr().GuildCreateConsumeEnd(accountId, guildId, name, rspObj.Errcode)
|
||||
if rspObj.Errcode != 0 {
|
||||
if rsp.GetErr() == nil && rsp.JsonParseOk() {
|
||||
if rspObj.Errcode != 0 {
|
||||
task.SetFail()
|
||||
cb(4, "item not enough", "")
|
||||
return
|
||||
}
|
||||
if !verifyFunc(task, cb) {
|
||||
return
|
||||
}
|
||||
this.asyncCreateGuildTask(task, guildId, accountId, avatar, name, cb)
|
||||
} else {
|
||||
task.SetFail()
|
||||
cb(4, "item not enough", "")
|
||||
return
|
||||
cb(4, "server internal error", "")
|
||||
}
|
||||
if !verifyFunc(task, cb) {
|
||||
return
|
||||
}
|
||||
this.asyncCreateGuildTask(task, guildId, accountId, avatar, name, cb)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user