This commit is contained in:
aozhiwei 2023-08-25 14:51:09 +08:00
parent 49ee8ade87
commit 0b59c96dd8
2 changed files with 4 additions and 4 deletions

View File

@ -85,8 +85,8 @@ CREATE TABLE `t_staking` (
`status` int(11) NOT NULL COMMENT '0:质押中 1:已解押',
`txhash` varchar(255) NOT NULL DEFAULT '' COMMENT 'txhash',
`nft_type` int(11) NOT NULL COMMENT '',
`ceg_value` double NOT NULL DEFAULT '0' COMMENT 'ceg价值',
`ceg_reward` double NOT NULL DEFAULT '0' COMMENT '利息',
`nft_value` double NOT NULL DEFAULT '0' COMMENT 'nft价值',
`nft_reward` double NOT NULL DEFAULT '0' COMMENT '利息',
`createtime` int(11) NOT NULL COMMENT '创建时间',
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
PRIMARY KEY (`idx`),

View File

@ -62,7 +62,7 @@ class StackingController extends BaseAuthedController {
} else {
$info['maturity_quant'] += $row['stacked_num'];
}
$info['staking_value'] += $row['ceg_value'];
$info['staking_value'] += $row['nft_value'];
}
}
break;
@ -74,7 +74,7 @@ class StackingController extends BaseAuthedController {
} else {
$info['maturity_quant'] += $row['stacked_num'];
}
$info['staking_value'] += $row['ceg_value'];
$info['staking_value'] += $row['nft_value'];
}
}
break;