This commit is contained in:
aozhiwei 2024-04-21 19:00:12 +08:00
parent 93b72d74cf
commit 0d9060ff18

View File

@ -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)
})
})
}