This commit is contained in:
aozhiwei 2022-04-03 14:08:23 +08:00
parent 5ae75c45b5
commit 12dc9253a1
2 changed files with 3 additions and 0 deletions

View File

@ -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 '本节点最后一次支付时间',

View File

@ -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()