This commit is contained in:
aozhiwei 2022-01-26 11:13:59 +08:00
parent 12aa60ec18
commit 0b225c2ee0
3 changed files with 9 additions and 2 deletions

View File

@ -413,7 +413,7 @@ class PreSaleInfo(object):
['batch_id', 0, '批次id(目前客户端没用到先不用管)'], ['batch_id', 0, '批次id(目前客户端没用到先不用管)'],
['countdown', 0, '预售倒计时'], ['countdown', 0, '预售倒计时'],
['sold_num', 0, '已售数'], ['sold_num', 0, '已售数'],
['inventory_num', 0, '库存数'], ['total_num', 0, '库存数'],
['hint', '', '预售文字描述'], ['hint', '', '预售文字描述'],
['buyed', 0, '自己是否已购'], ['buyed', 0, '自己是否已购'],
] ]

View File

@ -45,7 +45,7 @@ class MarketController extends BaseController {
'batch_id' => $currBatchMeta['batch_id'], 'batch_id' => $currBatchMeta['batch_id'],
'countdown' => max(0, $currBatchMeta['_start_time_utc'] - myself()->_getNowTime()), 'countdown' => max(0, $currBatchMeta['_start_time_utc'] - myself()->_getNowTime()),
'sold_num' => 0, 'sold_num' => 0,
'inventory_num' => $currBatchMeta['number_of_props'], 'total_num' => $currBatchMeta['number_of_props'],
'hint' => str_replace("\n", '\n', $currBatchMeta['hint']), 'hint' => str_replace("\n", '\n', $currBatchMeta['hint']),
'buyed' => rand() % 2 < 1 ? 0 : 1 'buyed' => rand() % 2 < 1 ? 0 : 1
); );

View File

@ -85,6 +85,13 @@ class NewMarketController extends BaseController {
public function buyBox() public function buyBox()
{ {
$type = getReqVal('type', '');
$buyer_address = getReqVal('buyer_address', '');
$price = getReqVal('price', '');
$payment_token_address = getReqVal('payment_token_address', '');
$nonce = getReqVal('nonce', '');
$signature = getReqVal('signature', '');
myself()->_rspOk(); myself()->_rspOk();
} }