This commit is contained in:
aozhiwei 2023-08-03 20:20:41 +08:00
parent a26fecc671
commit 22d0d1d5de
2 changed files with 1 additions and 22 deletions

View File

@ -60,26 +60,6 @@ class Market(object):
['!nfts', [_common.NftIntro()], 'nft列表'],
]
},
{
'name': 'sellMyNft',
'desc': '出售NFT',
'group': 'Market',
'url': 'webapp/index.php?c=Market&a=sellMyNft',
'params': [
['account', '', '账号id'],
['token', '', 'token'],
['nft_token', '', 'nft_token'],
['s_price', '', '出售价格USDT'],
['amount', 0, '出售数量'],
['payment_token_address', '', 'payment_token_address'],
['nonce', '', 'nonce'],
['signature', '', '签名soliditySha3(type, payment_token_address, price, nonce), 签名的replace客户端做处理'],
['net_id', '', '网络id'],
],
'response': [
_common.RspHead()
]
},
{
'name': 'sell',
'desc': '出售NFT',

View File

@ -598,6 +598,7 @@ class MarketController extends BaseAuthedController
'block_chain' => $response,
));
}
private function Web3PriceLowFormat($price)
{
$bn2 = phpcommon\bnInit('1000000000000000000');
@ -605,8 +606,6 @@ class MarketController extends BaseAuthedController
return phpcommon\bnToStr($ret_price);
}
private function getNftGameData($nftRowInfo)
{
$t = $nftRowInfo['token_type'];