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(); }