From 61d4bd36adece9b11c938efe10fca6c0758625bd Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 2 Dec 2021 15:53:21 +0800 Subject: [PATCH] 1 --- sql/gamedb.sql | 3 ++- webapp/controller/UserController.class.php | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/sql/gamedb.sql b/sql/gamedb.sql index 672b4e8..3f03dae 100644 --- a/sql/gamedb.sql +++ b/sql/gamedb.sql @@ -34,8 +34,9 @@ CREATE TABLE `t_user` ( `head_id` int(11) NOT NULL DEFAULT '0' COMMENT '头像id', `head_frame` int(11) NOT NULL DEFAULT '0' COMMENT '头像框id', `level` int(11) NOT NULL DEFAULT '0' COMMENT '等级', - `rank` int(11) NOT NULL DEFAULT '0' COMMENT '段位', `exp` int(11) NOT NULL DEFAULT '0' COMMENT '经验', + `rank` int(11) NOT NULL DEFAULT '0' COMMENT '段位', + `score` int(11) NOT NULL DEFAULT '0' COMMENT '积分', `gold` int(11) NOT NULL DEFAULT '0' COMMENT '金币', `diamond` int(11) NOT NULL DEFAULT '0' COMMENT '钻石', `hero_id` int(11) NOT NULL DEFAULT '0' COMMENT '当前上阵英雄id', diff --git a/webapp/controller/UserController.class.php b/webapp/controller/UserController.class.php index ad1a8e8..6ceb9ee 100644 --- a/webapp/controller/UserController.class.php +++ b/webapp/controller/UserController.class.php @@ -66,6 +66,8 @@ class UserController extends BaseAuthedController { 'head_frame' => 19003, 'level' => 100, 'exp' => 0, + 'rank' => 0, + 'score' => 0, 'head_id' => 18001, 'hero_id' => 30100, 'createtime' => $this->_getNowTime(),