This commit is contained in:
aozhiwei 2023-08-28 14:00:04 +08:00
parent 9ef3dc5225
commit d1278bc3dd
3 changed files with 6 additions and 3 deletions

View File

@ -24,10 +24,10 @@ class Staking(object):
]
},
{
'name': 'stacking',
'name': 'staking',
'desc': '质押中nft列表',
'group': 'Staking',
'url': 'webapp/index.php?c=Staking&a=stacking',
'url': 'webapp/index.php?c=Staking&a=staking',
'params': [
_common.ReqHead(),
['type', '', '1: planet 2: badge 3:cec'],

View File

@ -77,6 +77,8 @@ CREATE TABLE `t_hash_rate_reward` (
CREATE TABLE `t_staking` (
`idx` bigint(20) NOT NULL AUTO_INCREMENT,
`account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id',
`address` varchar(60) NOT NULL DEFAULT '' COMMENT 'address',
`address` varchar(60) COMMENT 'address',
`token_id` varchar(60) NOT NULL DEFAULT '' COMMENT 'token_id',
`token_type` int(11) NOT NULL DEFAULT '0' COMMENT 'nft类型 1:英雄 2:枪支 3:芯片 6:荣誉 7:徽章',

View File

@ -70,6 +70,7 @@ class MarketController extends BaseAuthedController {
}
$out = array(
'rows' => array(),
'pagination' => array()
);
SqlHelper::rawQueryPage(
@ -180,7 +181,7 @@ class MarketController extends BaseAuthedController {
)
),
//'orderBy' => $orderBy,
'handle' => function ($row) {
'handle' => function ($row) use (&$out) {
array_push($out['rows'], $this->fillNftIntro($row));
}
),