This commit is contained in:
hujiabin 2022-08-26 19:00:00 +08:00
parent be409a48bf
commit 1e78961bc1
2 changed files with 3 additions and 1 deletions

View File

@ -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`)

View File

@ -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));