diff --git a/doc/Staking.py b/doc/Staking.py index 90a515a3..5484080f 100644 --- a/doc/Staking.py +++ b/doc/Staking.py @@ -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'], diff --git a/sql/gamedb2006_migrate_230816_01.sql b/sql/gamedb2006_migrate_230816_01.sql index 47600fc2..216e4ba2 100644 --- a/sql/gamedb2006_migrate_230816_01.sql +++ b/sql/gamedb2006_migrate_230816_01.sql @@ -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:徽章', diff --git a/webapp/controller/MarketController.class.php b/webapp/controller/MarketController.class.php index 2cc83838..d1eee206 100644 --- a/webapp/controller/MarketController.class.php +++ b/webapp/controller/MarketController.class.php @@ -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)); } ),