From ebdec56058b563b98402049e78ec08191fae1093 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 16 Feb 2022 17:03:22 +0800 Subject: [PATCH] 1 --- sql/marketdb.sql | 2 ++ webapp/controller/MarketController.class.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sql/marketdb.sql b/sql/marketdb.sql index 7b3e26d6..ee415eb4 100644 --- a/sql/marketdb.sql +++ b/sql/marketdb.sql @@ -45,11 +45,13 @@ CREATE TABLE `t_box_order` ( `bc_pay_time` int(11) NOT NULL DEFAULT '0' COMMENT '本节点最后一次支付时间', `bc_pay_prepare_block_number` varchar(60) NOT NULL DEFAULT '' COMMENT '支付准备前块id', `bc_pay_success_block_number` varchar(60) NOT NULL DEFAULT '' COMMENT '支付成功块id', + `bc_pay_confirm_time` int(11) NOT NULL DEFAULT '0' COMMENT '支付成功被确认时间', `bc_minted` int(11) NOT NULL DEFAULT '0' COMMENT 'nft是否已创建', `bc_mint_count` int(11) NOT NULL DEFAULT '0' COMMENT '生成nft次数', `bc_mint_time` int(11) NOT NULL DEFAULT '0' COMMENT '最后一次生成nft时间', `bc_mint_prepare_block_number` varchar(60) NOT NULL DEFAULT '' COMMENT 'nft生成准备前块id', `bc_mint_success_block_number` varchar(60) NOT NULL DEFAULT '' COMMENT 'nft生成成功块id', + `bc_mint_confirm_time` int(11) NOT NULL DEFAULT '0' COMMENT 'nft生成被确认时间', `suspend` int(11) NOT NULL DEFAULT '0' COMMENT '挂起', `suspend_reason` mediumblob COMMENT '挂起原因', `done` int(11) NOT NULL DEFAULT '0' COMMENT '是否已完成', diff --git a/webapp/controller/MarketController.class.php b/webapp/controller/MarketController.class.php index fab912f5..66533a62 100644 --- a/webapp/controller/MarketController.class.php +++ b/webapp/controller/MarketController.class.php @@ -323,7 +323,7 @@ class MarketController extends BaseController { 'state' => 2 )); } else { - if ($orderDb['is_paid'] == 1) { + if ($orderDb['bc_paid'] == 1) { myself()->_rspData(array( 'state' => 1 ));