1
This commit is contained in:
parent
be409a48bf
commit
1e78961bc1
@ -152,6 +152,8 @@ CREATE TABLE `t_hero` (
|
|||||||
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
||||||
`modifytime` 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组',
|
`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`),
|
PRIMARY KEY (`idx`),
|
||||||
UNIQUE KEY `token_id` (`token_id`),
|
UNIQUE KEY `token_id` (`token_id`),
|
||||||
KEY `account_id` (`account_id`)
|
KEY `account_id` (`account_id`)
|
||||||
|
@ -47,7 +47,7 @@ class HeroController extends BaseAuthedController {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$chipAttr = [];
|
$chipAttr = [];
|
||||||
$hero = Hero::find($unique_id);
|
$hero = Hero::toDto(Hero::find($unique_id));
|
||||||
$chipIdsArr = explode('|',$hero['chip_ids']);
|
$chipIdsArr = explode('|',$hero['chip_ids']);
|
||||||
foreach ($chipIdsArr as $val){
|
foreach ($chipIdsArr as $val){
|
||||||
$chip = Chip::toDto(Chip::getChipByIdx($val));
|
$chip = Chip::toDto(Chip::getChipByIdx($val));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user