1
This commit is contained in:
parent
cd21b985d4
commit
ec24d315ae
@ -563,3 +563,35 @@ CREATE TABLE `t_param` (
|
||||
KEY `idx_name` (`name`)
|
||||
) 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',
|
||||
`log_index` bigint NOT NULL DEFAULT '0' COMMENT 'log_index',
|
||||
`net_id` bigint NOT NULL DEFAULT '0' COMMENT 'net_id',
|
||||
`contract_address` varchar(60) NOT NULL DEFAULT '' COMMENT 'contract_address',
|
||||
`src_idx` bigint NOT NULL DEFAULT '0' COMMENT 'src_idx',
|
||||
`buyer` varchar(60) NOT NULL DEFAULT '' COMMENT 'buyer',
|
||||
`passport` varchar(60) NOT NULL DEFAULT '' COMMENT 'passport',
|
||||
`order_id` varchar(80) NOT NULL DEFAULT '' COMMENT 'order_id',
|
||||
`currency` varchar(60) NOT NULL DEFAULT '' COMMENT 'currency',
|
||||
`amount` varchar(80) NOT NULL DEFAULT '' COMMENT 'amount',
|
||||
`diamond` double NOT NULL DEFAULT '0' COMMENT 'diamond',
|
||||
`status` int(11) NOT NULL DEFAULT '0' COMMENT '0:未发货 1:已发货',
|
||||
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
||||
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
||||
PRIMARY KEY (`idx`),
|
||||
UNIQUE KEY `unikey` (`txhash`, `log_index`, `net_id`, `contract_address`),
|
||||
KEY `idx_passport_status` (`passport`, `status`),
|
||||
KEY `idx_order_id` (`order_id`),
|
||||
KEY `idx_status` (`status`),
|
||||
KEY `idx_txhash` (`txhash`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
@ -93,6 +93,8 @@ async function recharge(session) {
|
||||
orderId,
|
||||
currencyAddress,
|
||||
amount,
|
||||
gameMallAddress,
|
||||
netId,
|
||||
nowTime,
|
||||
nonce
|
||||
);
|
||||
@ -102,8 +104,11 @@ async function recharge(session) {
|
||||
orderId,
|
||||
currencyAddress,
|
||||
amount,
|
||||
gameMallAddress,
|
||||
netId,
|
||||
nowTime,
|
||||
nonce);
|
||||
nonce,
|
||||
signature);
|
||||
let data = instance.methods.buy(
|
||||
passportAddress,
|
||||
orderId,
|
||||
|
Loading…
x
Reference in New Issue
Block a user