From 670ebbe96861834c157a14e28182e77efa8c4312 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 26 Jan 2022 19:08:40 +0800 Subject: [PATCH] 1 --- .../controller/NewMarketController.class.php | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/webapp/controller/NewMarketController.class.php b/webapp/controller/NewMarketController.class.php index d85bcd58..62057df5 100644 --- a/webapp/controller/NewMarketController.class.php +++ b/webapp/controller/NewMarketController.class.php @@ -164,6 +164,29 @@ class NewMarketController extends BaseController { 'modifytime' => myself()->_getNowTime() ) ); + } else { + $orderId = myself()->_getNowTime(); + $tokenId = $orderId; + $itemId = $type; + SqlHelper::insert + (myself()->_getMarketMysql(), + 't_box_order', + array( + 'batch_id' => $currBatchMeta['batch_id'], + 'order_id' => $orderId, + 'item_id' => $itemId, + 'state' => 0, + 'buyer_address' => $buyerAddress, + 'token_id' => '', + 'price' => $price, + 'payment_token_address' => $paymentTokenAddress, + 'nonce' => $nonce, + 'signature' => $signature, + 'done' => 0, + 'createtime' => myself()->_getNowTime(), + 'modifytime' => myself()->_getNowTime() + ) + ); } myself()->_rspOk(); }