This commit is contained in:
aozhiwei 2023-08-08 13:26:22 +08:00
parent 6b59d7302c
commit 965d9d2613
3 changed files with 3 additions and 3 deletions

View File

@ -195,7 +195,7 @@ class MarketController extends BaseAuthedController {
'selltime' => $row['selltime'],
'updatetime' => $row['createtime'],
);
$nftDb = Nft::getNft($row['token_id']);
$nftDb = Nft::getNftByNetCont($row['token_id'], $row['net_id'], $row['nft_token']);
if ($nftDb) {
$nftDb['detail'] = Nft::toDto($nftDb);
}

View File

@ -166,7 +166,7 @@ class Nft extends BaseModel
return $row;
}
public static function getNftByNetCon($tokenId, $netId, $contractAddress)
public static function getNftByNetCont($tokenId, $netId, $contractAddress)
{
$row = SqlHelper::ormSelectOne(
myself()->_getMarketMysql(),

View File

@ -30,7 +30,7 @@ class MarketSellOrderOk {
$price = getReqVal('price', '');
$fieldsKv = array();
$nftDb = Nft::getNft($row['token_id']);
$nftDb = Nft::getNftByNetCont($row['token_id'], $netId, $nftToken);
if ($nftDb) {
try {
$nftDetail = Nft::toDto($nftDb);