1
This commit is contained in:
parent
8232de31ab
commit
0424cc8ce6
@ -44,6 +44,9 @@ CREATE TABLE `t_user` (
|
|||||||
`last_season_id` int(11) NOT NULL DEFAULT '0' COMMENT '最后一次赛季id',
|
`last_season_id` int(11) NOT NULL DEFAULT '0' COMMENT '最后一次赛季id',
|
||||||
`activated` int(11) NOT NULL DEFAULT '0' COMMENT '是否已激活',
|
`activated` int(11) NOT NULL DEFAULT '0' COMMENT '是否已激活',
|
||||||
`activatetime` int(11) NOT NULL DEFAULT '0' COMMENT '激活时间',
|
`activatetime` int(11) NOT NULL DEFAULT '0' COMMENT '激活时间',
|
||||||
|
`head_list` mediumblob COMMENT '拥有的头像列表',
|
||||||
|
`head_frame_list` mediumblob COMMENT '拥有的头像框列表',
|
||||||
|
|
||||||
`total_battle_times` int(11) NOT NULL DEFAULT '0' COMMENT '总战斗次数',
|
`total_battle_times` int(11) NOT NULL DEFAULT '0' COMMENT '总战斗次数',
|
||||||
`total_single_battle_times` int(11) NOT NULL DEFAULT '0' COMMENT '总战斗次数(单人)',
|
`total_single_battle_times` int(11) NOT NULL DEFAULT '0' COMMENT '总战斗次数(单人)',
|
||||||
`total_team_battle_times` int(11) NOT NULL DEFAULT '0' COMMENT '总战斗次数(组队)',
|
`total_team_battle_times` int(11) NOT NULL DEFAULT '0' COMMENT '总战斗次数(组队)',
|
||||||
|
@ -71,6 +71,8 @@ class UserController extends BaseAuthedController {
|
|||||||
'head_id' => 18001,
|
'head_id' => 18001,
|
||||||
'hero_id' => 30100,
|
'hero_id' => 30100,
|
||||||
'last_season_id' => $currSeasonMeta ? $currSeasonMeta['id'] : 0,
|
'last_season_id' => $currSeasonMeta ? $currSeasonMeta['id'] : 0,
|
||||||
|
'head_list' => json_encode(array(18001)),
|
||||||
|
'head_frame_list' => json_encode(array(19003)),
|
||||||
'createtime' => $this->_getNowTime(),
|
'createtime' => $this->_getNowTime(),
|
||||||
'modifytime' => $this->_getNowTime(),
|
'modifytime' => $this->_getNowTime(),
|
||||||
)
|
)
|
||||||
|
@ -7,6 +7,7 @@ class User extends BaseModel {
|
|||||||
public static function show($row)
|
public static function show($row)
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
|
'activated' => $row['activated'],
|
||||||
'account_id' => $row['account_id'],
|
'account_id' => $row['account_id'],
|
||||||
'name' => $row['name'],
|
'name' => $row['name'],
|
||||||
'sex' => $row['sex'],
|
'sex' => $row['sex'],
|
||||||
@ -20,13 +21,15 @@ class User extends BaseModel {
|
|||||||
'diamond' => $row['diamond'],
|
'diamond' => $row['diamond'],
|
||||||
'hero_id' => $row['hero_id'],
|
'hero_id' => $row['hero_id'],
|
||||||
'first_fight' => $row['first_fight'],
|
'first_fight' => $row['first_fight'],
|
||||||
'activated' => $row['activated'],
|
'head_list' => !empty($row['head_list']) ? json_decode($row['head_list'], true) : array(),
|
||||||
|
'head_frame_list' => !empty($row['head_frame_list']) ? json_decode($row['head_frame_list'], true) : array(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function info($row)
|
public static function info($row)
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
|
'activated' => $row['activated'],
|
||||||
'account_id' => $row['account_id'],
|
'account_id' => $row['account_id'],
|
||||||
'name' => $row['name'],
|
'name' => $row['name'],
|
||||||
'sex' => $row['sex'],
|
'sex' => $row['sex'],
|
||||||
@ -40,7 +43,8 @@ class User extends BaseModel {
|
|||||||
'diamond' => $row['diamond'],
|
'diamond' => $row['diamond'],
|
||||||
'hero_id' => $row['hero_id'],
|
'hero_id' => $row['hero_id'],
|
||||||
'first_fight' => $row['first_fight'],
|
'first_fight' => $row['first_fight'],
|
||||||
'activated' => $row['activated'],
|
'head_list' => !empty($row['head_list']) ? json_decode($row['head_list'], true) : array(),
|
||||||
|
'head_frame_list' => !empty($row['head_frame_list']) ? json_decode($row['head_frame_list'], true) : array(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user