This commit is contained in:
aozhiwei 2022-03-28 10:03:47 +08:00
parent 7af50af9f7
commit 745c2dc627
2 changed files with 47 additions and 11 deletions

View File

@ -123,6 +123,53 @@ CREATE TABLE `t_block_number` (
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t_withdrawal`
--
DROP TABLE IF EXISTS `t_withdrawal`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_withdrawal` (
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
`trans_id` varchar(60) NOT NULL DEFAULT '' COMMENT 'trans_id',
`account` varchar(255) NOT NULL DEFAULT '' COMMENT 'account',
`type` int(11) NOT NULL DEFAULT '0' COMMENT 'type',
`net_id` int(11) NOT NULL DEFAULT '0' COMMENT 'net_id',
`amount` bigint NOT NULL DEFAULT '0' COMMENT 'amount',
`state` int(11) NOT NULL DEFAULT '0' COMMENT 'state 0:等待上链 1:上链中2:上链成功 3:提现失败',
`bc_block_number` varchar(60) NOT NULL DEFAULT '' COMMENT '支付准备前块id',
`bc_txhash` varchar(255) COMMENT 'bc_txhash',
`bc_time` int(11) NOT NULL DEFAULT '0' COMMENT '本节点最后一次支付时间',
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
PRIMARY KEY (`idx`),
UNIQUE KEY `trans_id` (`trans_id`),
UNIQUE KEY `bc_txhash` (`bc_txhash`),
KEY `account` (`account`)
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t_recharge`
--
DROP TABLE IF EXISTS `t_recharge`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_recharge` (
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
`txhash` varchar(255) NOT NULL DEFAULT '' COMMENT 'txhash',
`account` varchar(255) NOT NULL DEFAULT '' COMMENT 'account',
`amount` bigint NOT NULL DEFAULT '0' COMMENT 'amount',
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
PRIMARY KEY (`idx`),
UNIQUE KEY `txhash` (`txhash`),
KEY `account` (`account`),
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t_log`
--

View File

@ -1,26 +1,16 @@
<?php
require_once('mt/MarketGoods.php');
require_once('mt/MarketBatch.php');
require_once('mt/Item.php');
require_once('mt/WhiteList.php');
require_once('mt/Currency.php');
require_once('mt/Hero.php');
require_once('mt/Parameter.php');
require_once('models/BoxOrder.php');
require_once('models/Nft.php');
require_once('models/BuyRecord.php');
require_once('phpcommon/bchelper.php');
use phpcommon\SqlHelper;
use models\BoxOrder;
use models\Nft;
use models\BuyRecord;
const CURRENCY_DECIMALS = 8;
const PRICE_PAD = '0000000000';
class WalletController extends BaseController {
@ -34,7 +24,6 @@ class WalletController extends BaseController {
}
public function queryWithdrawalResult()
{