1
This commit is contained in:
parent
6b59d7302c
commit
965d9d2613
@ -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);
|
||||
}
|
||||
|
@ -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(),
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user