Merge branch 'james_bc' of git.kingsome.cn:server/game2006api into james_bc
This commit is contained in:
commit
4c0e4f2009
@ -9,6 +9,7 @@ class NftIntro(object):
|
||||
['idx', 0, 'idx'],
|
||||
['token_id', '', 'token_id'],
|
||||
['token_type', 0, 'nft类型 1:英雄 2:枪支 3:芯片'],
|
||||
['amount', 0, '堆叠数量'],
|
||||
['createtime', 0, '创建时间(上架时间)'],
|
||||
['modifytime', 0, '修改时间(更新价格等)'],
|
||||
['s_price', 0, '出售价格-暂定'],
|
||||
@ -368,6 +369,7 @@ class Market(object):
|
||||
['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客户端做处理'],
|
||||
|
@ -884,6 +884,7 @@ class MarketController extends BaseController {
|
||||
$token = getReqVal('token', '');
|
||||
$nft_token = getReqVal('nft_token', '');
|
||||
$s_price = getReqVal('s_price', '');
|
||||
$amount = getReqVal('amount', 1);
|
||||
$payment_token_address = getReqVal('payment_token_address', '');
|
||||
$nonce = getReqVal('nonce', '');
|
||||
$signature = getReqVal('signature', '');
|
||||
@ -901,6 +902,7 @@ class MarketController extends BaseController {
|
||||
'token_id' => $nft_token,
|
||||
'owner_address' => $nftDetail['owner_address'],
|
||||
'token_type' => $nftDetail['type'],
|
||||
'amount' => $amount,
|
||||
'createtime' => myself()->_getNowTime(),
|
||||
'modifytime' => myself()->_getNowTime(),
|
||||
's_price' => $s_price,
|
||||
|
Loading…
x
Reference in New Issue
Block a user