1
This commit is contained in:
parent
6b59d7302c
commit
965d9d2613
@ -195,7 +195,7 @@ class MarketController extends BaseAuthedController {
|
|||||||
'selltime' => $row['selltime'],
|
'selltime' => $row['selltime'],
|
||||||
'updatetime' => $row['createtime'],
|
'updatetime' => $row['createtime'],
|
||||||
);
|
);
|
||||||
$nftDb = Nft::getNft($row['token_id']);
|
$nftDb = Nft::getNftByNetCont($row['token_id'], $row['net_id'], $row['nft_token']);
|
||||||
if ($nftDb) {
|
if ($nftDb) {
|
||||||
$nftDb['detail'] = Nft::toDto($nftDb);
|
$nftDb['detail'] = Nft::toDto($nftDb);
|
||||||
}
|
}
|
||||||
|
@ -166,7 +166,7 @@ class Nft extends BaseModel
|
|||||||
return $row;
|
return $row;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getNftByNetCon($tokenId, $netId, $contractAddress)
|
public static function getNftByNetCont($tokenId, $netId, $contractAddress)
|
||||||
{
|
{
|
||||||
$row = SqlHelper::ormSelectOne(
|
$row = SqlHelper::ormSelectOne(
|
||||||
myself()->_getMarketMysql(),
|
myself()->_getMarketMysql(),
|
||||||
|
@ -30,7 +30,7 @@ class MarketSellOrderOk {
|
|||||||
$price = getReqVal('price', '');
|
$price = getReqVal('price', '');
|
||||||
|
|
||||||
$fieldsKv = array();
|
$fieldsKv = array();
|
||||||
$nftDb = Nft::getNft($row['token_id']);
|
$nftDb = Nft::getNftByNetCont($row['token_id'], $netId, $nftToken);
|
||||||
if ($nftDb) {
|
if ($nftDb) {
|
||||||
try {
|
try {
|
||||||
$nftDetail = Nft::toDto($nftDb);
|
$nftDetail = Nft::toDto($nftDb);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user