From 409dcb5e140199cf74193e15ca960aa462a1c583 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 28 Aug 2023 15:20:23 +0800 Subject: [PATCH] 1 --- sql/gamedb2006_migrate_230816_01.sql | 1 + webapp/models/Staking.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sql/gamedb2006_migrate_230816_01.sql b/sql/gamedb2006_migrate_230816_01.sql index d1e3827f..f46b830f 100644 --- a/sql/gamedb2006_migrate_230816_01.sql +++ b/sql/gamedb2006_migrate_230816_01.sql @@ -81,6 +81,7 @@ CREATE TABLE `t_staking` ( `address` varchar(60) NOT NULL DEFAULT '' COMMENT 'address', `order_id` varchar(60) COMMENT 'order_id', `token_id` varchar(60) NOT NULL DEFAULT '' COMMENT 'token_id', + `item_id` int(11) NOT NULL COMMENT 'item_id', `token_type` int(11) NOT NULL DEFAULT '0' COMMENT 'nft类型 1:英雄 2:枪支 3:芯片 6:荣誉 7:徽章', `net_id` bigint NOT NULL DEFAULT '0' COMMENT 'net_id', `contract_address` varchar(60) NOT NULL DEFAULT '' COMMENT 'contract_address', diff --git a/webapp/models/Staking.php b/webapp/models/Staking.php index fe154ffc..3ce9b57f 100644 --- a/webapp/models/Staking.php +++ b/webapp/models/Staking.php @@ -101,7 +101,7 @@ class Staking extends BaseModel { public static function repair721NftInfo($tokenId, $contractAddress, $netId, $startTime, &$itemId, &$tokenType) { - $row = SqlHelper::ormSelect( + $row = SqlHelper::ormSelectOne( myself()->_getMarketMysql(), 't_nft', array(