diff --git a/sql/marketdb.sql b/sql/marketdb.sql index ee415eb4..bbd8e911 100644 --- a/sql/marketdb.sql +++ b/sql/marketdb.sql @@ -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` -- diff --git a/webapp/controller/WalletController.class.php b/webapp/controller/WalletController.class.php index c255c53c..2d64508d 100644 --- a/webapp/controller/WalletController.class.php +++ b/webapp/controller/WalletController.class.php @@ -1,26 +1,16 @@