From 12dc9253a1511e1fa84f5748a1e400c90fa67886 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sun, 3 Apr 2022 14:08:23 +0800 Subject: [PATCH] b1 --- sql/marketdb.sql | 1 + webapp/controller/MarketController.class.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/sql/marketdb.sql b/sql/marketdb.sql index 33990775..6819f81c 100644 --- a/sql/marketdb.sql +++ b/sql/marketdb.sql @@ -54,6 +54,7 @@ CREATE TABLE `t_box_order` ( `payment_token_address` varchar(60) NOT NULL DEFAULT '' COMMENT '货币地址', `nonce` varchar(60) NOT NULL DEFAULT '' COMMENT 'nonce', `signature` varchar(255) NOT NULL DEFAULT '' COMMENT '签名', + `net_id` varchar(60) NOT NULL DEFAULT '' COMMENT 'net_id', `bc_paid` int(11) NOT NULL DEFAULT '0' COMMENT '是否已支付', `bc_pay_count` int(11) NOT NULL DEFAULT '0' COMMENT '支付次数', `bc_pay_time` int(11) NOT NULL DEFAULT '0' COMMENT '本节点最后一次支付时间', diff --git a/webapp/controller/MarketController.class.php b/webapp/controller/MarketController.class.php index 5013f9c4..8cf05ae3 100644 --- a/webapp/controller/MarketController.class.php +++ b/webapp/controller/MarketController.class.php @@ -93,6 +93,7 @@ class MarketController extends BaseController { $paymentTokenAddress = getReqVal('payment_token_address', ''); $nonce = getReqVal('nonce', ''); $signature = getReqVal('signature', ''); + $netId = getReqVal('net_id', ''); $gameId = 2006; $funcId = MarketService::FUNCID_PRESALE; if (!MarketService::isValidToken($buyerAddress, $token)) { @@ -201,6 +202,7 @@ class MarketController extends BaseController { 'payment_token_address' => $paymentTokenAddress, 'nonce' => $nonce, 'signature' => $signature, + 'net_id' => $netId, 'done' => 0, 'createtime' => myself()->_getNowTime(), 'modifytime' => myself()->_getNowTime()