1
This commit is contained in:
parent
7f0ebf837d
commit
3ab4cd821b
@ -127,6 +127,7 @@ CREATE TABLE `t_guild` (
|
|||||||
PRIMARY KEY (`idx`),
|
PRIMARY KEY (`idx`),
|
||||||
UNIQUE KEY `idx_guild_id` (`guild_id`),
|
UNIQUE KEY `idx_guild_id` (`guild_id`),
|
||||||
UNIQUE KEY `idx_guild_name` (`guild_name`),
|
UNIQUE KEY `idx_guild_name` (`guild_name`),
|
||||||
|
KEY `deleted` (`deleted`),
|
||||||
KEY `owner_id` (`owner_id`),
|
KEY `owner_id` (`owner_id`),
|
||||||
KEY `creator_id` (`creator_id`)
|
KEY `creator_id` (`creator_id`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
) ENGINE=InnoDB AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||||
|
@ -10,17 +10,17 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type HistorySeasons struct {
|
type HistorySeasons struct {
|
||||||
TotalKills int `json:"total_kills"`
|
TotalKills int32 `json:"total_kills"`
|
||||||
WinTimes int `json:"win_times"`
|
WinTimes int32 `json:"win_times"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type HeadRsp struct {
|
type HeadRsp struct {
|
||||||
Errcode int `json:"errcode"`
|
Errcode int32 `json:"errcode"`
|
||||||
Errmsg string `json:"errmsg"`
|
Errmsg string `json:"errmsg"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type LoginRsp struct {
|
type LoginRsp struct {
|
||||||
Errcode int `json:"errcode"`
|
Errcode int32 `json:"errcode"`
|
||||||
Errmsg string `json:"errmsg"`
|
Errmsg string `json:"errmsg"`
|
||||||
Info struct {
|
Info struct {
|
||||||
Activated string `json:"activated"`
|
Activated string `json:"activated"`
|
||||||
@ -113,4 +113,6 @@ type DbLogMgr interface {
|
|||||||
|
|
||||||
GuildClearEmptyStart(string, string)
|
GuildClearEmptyStart(string, string)
|
||||||
GuildClearEmptyEnd(string, string)
|
GuildClearEmptyEnd(string, string)
|
||||||
|
GuildCreateConsumeBegin(string, string, string)
|
||||||
|
GuildCreateConsumeEnd(string, string, string, int32)
|
||||||
}
|
}
|
||||||
|
@ -315,11 +315,13 @@ func (this *guildMgr) AsyncCreateGuild(accountId string, sessionId string, avata
|
|||||||
}
|
}
|
||||||
url := fmt.Sprintf("%s/webapp/index.php", mt.Table.Config.GetById(0).GetGameapiUrl())
|
url := fmt.Sprintf("%s/webapp/index.php", mt.Table.Config.GetById(0).GetGameapiUrl())
|
||||||
rspObj := new(common.HeadRsp)
|
rspObj := new(common.HeadRsp)
|
||||||
|
GetDbLogMgr().GuildCreateConsumeBegin(accountId, guildId, name)
|
||||||
f5.GetHttpCliMgr().SendJsStyleJsonRspRequest(
|
f5.GetHttpCliMgr().SendJsStyleJsonRspRequest(
|
||||||
url,
|
url,
|
||||||
params,
|
params,
|
||||||
&rspObj,
|
&rspObj,
|
||||||
func(rsp f5.HttpCliResponse) {
|
func(rsp f5.HttpCliResponse) {
|
||||||
|
GetDbLogMgr().GuildCreateConsumeEnd(accountId, guildId, name, rspObj.Errcode)
|
||||||
if rspObj.Errcode != 0 {
|
if rspObj.Errcode != 0 {
|
||||||
task.SetFail()
|
task.SetFail()
|
||||||
cb(4, "item not enough", "")
|
cb(4, "item not enough", "")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user