From 1e78961bc1f6b355a3b96fddfe7c4ccf8345d6cd Mon Sep 17 00:00:00 2001 From: hujiabin Date: Fri, 26 Aug 2022 19:00:00 +0800 Subject: [PATCH] 1 --- sql/gamedb.sql | 2 ++ webapp/controller/HeroController.class.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sql/gamedb.sql b/sql/gamedb.sql index e8d4c958..520656ef 100644 --- a/sql/gamedb.sql +++ b/sql/gamedb.sql @@ -152,6 +152,8 @@ CREATE TABLE `t_hero` ( `createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', `chip_ids` varchar(100) NOT NULL DEFAULT '0' COMMENT '已镶嵌的芯片idx组', + `skill_common` varchar(255) NOT NULL DEFAULT '100100|100120|100140|100160|100180|100200|100220|100240|100260|100280' COMMENT '通用技能', + `skill_points` int(11) NOT NULL DEFAULT '0' COMMENT '技能点', PRIMARY KEY (`idx`), UNIQUE KEY `token_id` (`token_id`), KEY `account_id` (`account_id`) diff --git a/webapp/controller/HeroController.class.php b/webapp/controller/HeroController.class.php index 7dd6249a..629d061b 100644 --- a/webapp/controller/HeroController.class.php +++ b/webapp/controller/HeroController.class.php @@ -47,7 +47,7 @@ class HeroController extends BaseAuthedController { return; } $chipAttr = []; - $hero = Hero::find($unique_id); + $hero = Hero::toDto(Hero::find($unique_id)); $chipIdsArr = explode('|',$hero['chip_ids']); foreach ($chipIdsArr as $val){ $chip = Chip::toDto(Chip::getChipByIdx($val));