This commit is contained in:
aozhiwei 2023-08-28 15:20:23 +08:00
parent 6d43cacd1f
commit 409dcb5e14
2 changed files with 2 additions and 1 deletions

View File

@ -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',

View File

@ -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(