1
This commit is contained in:
parent
d99ca2cb9c
commit
54483965af
@ -27,7 +27,7 @@ class Battle(object):
|
|||||||
'url': 'webapp/index.php?c=Battle&a=getBattleHistory',
|
'url': 'webapp/index.php?c=Battle&a=getBattleHistory',
|
||||||
'params': [
|
'params': [
|
||||||
_common.ReqHead(),
|
_common.ReqHead(),
|
||||||
['mode', '', '0:pvp 1:排位 2:pve']
|
['mode', '', ' 1:pvp 2:pve']
|
||||||
],
|
],
|
||||||
'response': [
|
'response': [
|
||||||
_common.RspHead(),
|
_common.RspHead(),
|
||||||
|
@ -146,6 +146,8 @@ class UserInfo(object):
|
|||||||
['!hero_list', [0], '拥有的立绘背景列表'],
|
['!hero_list', [0], '拥有的立绘背景列表'],
|
||||||
['!head_frame_list', [0], '拥有的头像框列表'],
|
['!head_frame_list', [0], '拥有的头像框列表'],
|
||||||
['is_gain_item', 0, '0 为获取,1 以获取'],
|
['is_gain_item', 0, '0 为获取,1 以获取'],
|
||||||
|
['labor_id', 0, '工会id'],
|
||||||
|
['labor_name', '', '工会名称'],
|
||||||
]
|
]
|
||||||
|
|
||||||
class UserSimple(object):
|
class UserSimple(object):
|
||||||
@ -197,6 +199,8 @@ class UserDetailInfo(object):
|
|||||||
['current_rank_score', 0, '当前赛季排位分'],
|
['current_rank_score', 0, '当前赛季排位分'],
|
||||||
['history_best_rank_score', 0, '历史最高赛季排位分'],
|
['history_best_rank_score', 0, '历史最高赛季排位分'],
|
||||||
['like_count', 0, '点赞次数'],
|
['like_count', 0, '点赞次数'],
|
||||||
|
['labor_id', 0, '工会id'],
|
||||||
|
['labor_name', '', '工会名称'],
|
||||||
['!history_seasons', [UserHisSeason()], '历史打过的赛季列表'],
|
['!history_seasons', [UserHisSeason()], '历史打过的赛季列表'],
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -62,6 +62,8 @@ CREATE TABLE `t_user` (
|
|||||||
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
||||||
`last_login_time` int(11) NOT NULL DEFAULT '0' COMMENT '上次登录时间',
|
`last_login_time` int(11) NOT NULL DEFAULT '0' COMMENT '上次登录时间',
|
||||||
`is_gain_item` int(11) NOT NULL DEFAULT '0' COMMENT '是否获取免费item道具',
|
`is_gain_item` int(11) NOT NULL DEFAULT '0' COMMENT '是否获取免费item道具',
|
||||||
|
`labor_id` int(11) NOT NULL DEFAULT '0' COMMENT '工会id',
|
||||||
|
`labor_name` varchar(60) NOT NULL DEFAULT '' COMMENT '工会名称',
|
||||||
PRIMARY KEY (`idx`),
|
PRIMARY KEY (`idx`),
|
||||||
UNIQUE KEY `account_id` (`account_id`),
|
UNIQUE KEY `account_id` (`account_id`),
|
||||||
KEY `channel` (`channel`)
|
KEY `channel` (`channel`)
|
||||||
|
@ -52,6 +52,8 @@ class User extends BaseModel {
|
|||||||
'hero_list' => self::exportHeadList($row)['hero_list'],
|
'hero_list' => self::exportHeadList($row)['hero_list'],
|
||||||
'head_frame_list' => emptyReplace(json_decode($row['head_frame_list'], true), array()),
|
'head_frame_list' => emptyReplace(json_decode($row['head_frame_list'], true), array()),
|
||||||
'is_gain_item' => $row['is_gain_item'],
|
'is_gain_item' => $row['is_gain_item'],
|
||||||
|
'labor_id' => $row['labor_id'],
|
||||||
|
'labor_name' => $row['labor_name'],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -85,7 +87,9 @@ class User extends BaseModel {
|
|||||||
'like_count' => $row['like_count'],
|
'like_count' => $row['like_count'],
|
||||||
'head_frame_list' => emptyReplace(json_decode($row['head_frame_list'], true), array()),
|
'head_frame_list' => emptyReplace(json_decode($row['head_frame_list'], true), array()),
|
||||||
'is_gain_item' => $row['is_gain_item'],
|
'is_gain_item' => $row['is_gain_item'],
|
||||||
'is_leader' => 0
|
'is_leader' => 0,
|
||||||
|
'labor_id' => $row['labor_id'],
|
||||||
|
'labor_name' => $row['labor_name'],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user