diff --git a/doc/_common.py b/doc/_common.py index 7ff0de5a..355dea7b 100644 --- a/doc/_common.py +++ b/doc/_common.py @@ -127,6 +127,7 @@ class UserInfo(object): ['hero_id', 0, '当前使用的英雄ID'], ['first_fight', 0, '是否是第一次战斗'], ['already_guide', 0, '是否已经引导'], + ['pve_instance_id', 0, '已过pve副本id 0:一关未过'], ['!head_list', [0], '拥有的头像列表'], ['!head_frame_list', [0], '拥有的头像框列表'], ] @@ -147,6 +148,7 @@ class UserSimple(object): ['hero_id', 0, '当前使用的英雄ID'], ['rank', 0, '段位'], ['score', 0, '积分'], + ['pve_instance_id', 0, '已过pve副本id 0:一关未过'], ] class BcUserInfo(object): @@ -693,4 +695,4 @@ class ChipPro(object): ['strength', '', '体力值'], ['!rand_attr_after', [ChipAttr()], '芯片升级后的属性'], ['upgrade_cost', '', '芯片升级所需价值'], - ] \ No newline at end of file + ] diff --git a/sql/gamedb.sql b/sql/gamedb.sql index 44948963..945632e7 100644 --- a/sql/gamedb.sql +++ b/sql/gamedb.sql @@ -48,6 +48,7 @@ CREATE TABLE `t_user` ( `rename_count` int(11) NOT NULL DEFAULT '0' COMMENT '改名次数', `activatetime` int(11) NOT NULL DEFAULT '0' COMMENT '激活时间', `already_guide` int(11) NOT NULL DEFAULT '0' COMMENT '已引导', + `pve_instance_id` int(11) NOT NULL DEFAULT '0' COMMENT '已过pve副本id', `head_list` mediumblob COMMENT '拥有的头像列表', `head_frame_list` mediumblob COMMENT '拥有的头像框列表', `consume_gold` bigint NOT NULL DEFAULT '0' COMMENT '消费金币数', diff --git a/webapp/models/User.php b/webapp/models/User.php index a4c334e2..9e6fadaa 100644 --- a/webapp/models/User.php +++ b/webapp/models/User.php @@ -43,6 +43,7 @@ class User extends BaseModel { 'hero_id' => $row['hero_id'], 'first_fight' => $row['first_fight'], 'already_guide' => $row['already_guide'], + 'pve_instance_id' => $row['pve_instance_id'], 'head_list' => self::getHeadList($row), 'head_frame_list' => emptyReplace(json_decode($row['head_frame_list'], true), array()), ); @@ -70,6 +71,7 @@ class User extends BaseModel { 'first_fight' => $row['first_fight'], 'already_guide' => $row['already_guide'], 'head_list' => self::getHeadList($row), + 'pve_instance_id' => $row['pve_instance_id'], 'head_frame_list' => emptyReplace(json_decode($row['head_frame_list'], true), array()), ); } @@ -90,6 +92,7 @@ class User extends BaseModel { 'gold' => $row['gold'], 'diamond' => $row['diamond'], 'hero_id' => $row['hero_id'], + 'pve_instance_id' => $row['pve_instance_id'], 'first_fight' => $row['first_fight'], ); }