This commit is contained in:
aozhiwei 2024-04-12 11:31:41 +08:00
parent fd036ffba0
commit e6a40c4f9e

View File

@ -16,6 +16,9 @@ const (
LOG_TYPE_GUILD_CLEAR_EMPTY_START = "guild.clear_empty.start"
LOG_TYPE_GUILD_CLEAR_EMPTY_END = "guild.clear_empty.end"
LOG_TYPE_GUILD_CREATE_CONSUME_BEGIN = "guild.create_consume.begin"
LOG_TYPE_GUILD_CREATE_CONSUME_END = "guild.create_consume.end"
)
func (this* dbLogMgr) Init() {
@ -71,10 +74,21 @@ func (this *dbLogMgr) GuildClearEmptyEnd(guildId string, guildName string) {
})
}
func (this *dbLogMgr) GuildCreateConsumeBegin(string, string, string) {
func (this *dbLogMgr) GuildCreateConsumeBegin(accountId string, guildId string, guildName string) {
this.addLog([][]string{
{"log_type", LOG_TYPE_GUILD_CREATE_CONSUME_BEGIN},
{"param1", accountId},
{"param2", guildId},
{"param3", guildName},
})
}
func (this *dbLogMgr) GuildCreateConsumeEnd(string, string, string, int32) {
func (this *dbLogMgr) GuildCreateConsumeEnd(accountId string, guildId string, guildName string, errCode int32) {
this.addLog([][]string{
{"log_type", LOG_TYPE_GUILD_CREATE_CONSUME_END},
{"param1", accountId},
{"param2", guildId},
{"param3", guildName},
{"paramr", q5.ToString(errCode)},
})
}