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

View File

@ -267,6 +267,7 @@ func (this *guildMgr) AsyncCreateGuild(accountId string, sessionId string, avata
&rspObj,
func(rsp f5.HttpCliResponse) {
GetDbLogMgr().GuildCreateConsumeEnd(accountId, guildId, name, rspObj.Errcode)
if rsp.GetErr() == nil && rsp.JsonParseOk() {
if rspObj.Errcode != 0 {
task.SetFail()
cb(4, "item not enough", "")
@ -276,6 +277,10 @@ func (this *guildMgr) AsyncCreateGuild(accountId string, sessionId string, avata
return
}
this.asyncCreateGuildTask(task, guildId, accountId, avatar, name, cb)
} else {
task.SetFail()
cb(4, "server internal error", "")
}
})
})
}