diff --git a/doc/ComputingPower.py b/doc/ComputingPower.py index 35330edf..2d0021bf 100644 --- a/doc/ComputingPower.py +++ b/doc/ComputingPower.py @@ -21,7 +21,7 @@ class ComputingPower(object): }, { 'name': 'exchangePower', - 'desc': '', + 'desc': '晶体兑换算力', 'group': 'ComputingPower', 'url': 'webapp/index.php?c=ComputingPower&a=exchangePower', 'params': [ @@ -33,7 +33,7 @@ class ComputingPower(object): }, { 'name': 'exchangeCrystal', - 'desc': '', + 'desc': '兑换晶体', 'group': 'ComputingPower', 'url': 'webapp/index.php?c=ComputingPower&a=exchangeCrystal', 'params': [ @@ -44,10 +44,10 @@ class ComputingPower(object): ] }, { - 'name': 'getCrystalUiInfo', - 'desc': '获取算力信息', + 'name': 'getCrystalUi', + 'desc': '获取晶体ui信息', 'group': 'ComputingPower', - 'url': 'webapp/index.php?c=ComputingPower&a=getCrystalUiInfo', + 'url': 'webapp/index.php?c=ComputingPower&a=getCrystalUi', 'params': [ _common.ReqHead(), ], @@ -58,7 +58,7 @@ class ComputingPower(object): }, { 'name': 'getRewardHistorys', - 'desc': '获取算力信息', + 'desc': '获取奖励历史', 'group': 'ComputingPower', 'url': 'webapp/index.php?c=ComputingPower&a=getRewardHistorys', 'params': [ @@ -71,7 +71,7 @@ class ComputingPower(object): }, { 'name': 'getExchangeCrystalHistorys', - 'desc': '获取算力信息', + 'desc': '获取兑换晶体历史', 'group': 'ComputingPower', 'url': 'webapp/index.php?c=ComputingPower&a=getExchangeCrystalHistorys', 'params': [ @@ -84,7 +84,7 @@ class ComputingPower(object): }, { 'name': 'getExchangePowerHistorys', - 'desc': '获取算力信息', + 'desc': '获取兑换算力历史', 'group': 'ComputingPower', 'url': 'webapp/index.php?c=ComputingPower&a=getExchangePowerHistorys', 'params': [ diff --git a/doc/_common.py b/doc/_common.py index a1bbcc6e..b0d391b8 100644 --- a/doc/_common.py +++ b/doc/_common.py @@ -1329,21 +1329,21 @@ class ComputingPowerSelf(object): def __init__(self): self.fields = [ - ['exchange_hash_rate', '', "选用币种 目前只支持CEG USDC USDT"], + ['exchange_hash_rate', '', "我已兑换的算力"], ] class ComputingPowerCurr(object): def __init__(self): self.fields = [ - ['period_begin', '', ''], - ['period_end', '', '商品唯一id'], - ['assignable_cec', '', '出售方账号'], + ['period_begin', '', '本期开始时间'], + ['period_end', '', '本期结束时间'], + ['assignable_cec', '', '可分配的cec'], - ['total_target', '', '出售方钱包地址'], - ['total_hash_rate', '', '商品道具id'], - ['refresh_remain_time', '', '道具数量'], - ['total_exchange_hash_rate', '', "选用币种 目前只支持CEG USDC USDT"], + ['total_target', '', '总目标'], + ['total_hash_rate', '', '总算力'], + ['refresh_remain_time', '', '刷新剩余时间'], + ['total_exchange_hash_rate', '', "总兑换算力"], ] class ComputingPowerLast(object): diff --git a/sql/gamedb.sql b/sql/gamedb.sql index d58b137b..08747a71 100644 --- a/sql/gamedb.sql +++ b/sql/gamedb.sql @@ -1530,3 +1530,92 @@ CREATE TABLE `t_market_transaction_record` ( KEY `o_link` (`o_link`), KEY `order_id` (`order_id`) ) ENGINE=InnoDB AUTO_INCREMENT=10002 DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `t_crystal` +-- + +DROP TABLE IF EXISTS `t_crystal`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `t_crystal` ( + `idx` bigint(20) NOT NULL AUTO_INCREMENT, + `account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id', + `address` varchar(60) COMMENT 'address', + `item_id` int(11) NOT NULL DEFAULT '0' COMMENT '道具id', + `item_num` bigint NOT NULL DEFAULT '0' COMMENT '道具数量', + `createtime` int(11) NOT NULL COMMENT '创建时间', + `modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', + PRIMARY KEY (`idx`), + UNIQUE KEY `account_id_item_id` (`account_id`, `item_id`), + KEY `account_id` (`account_id`) +) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `t_crystal_exchange_record` +-- + +DROP TABLE IF EXISTS `t_crystal_exchange_record`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `t_crystal_exchange_record` ( + `idx` bigint(20) NOT NULL AUTO_INCREMENT, + `account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id', + `address` varchar(60) COMMENT 'address', + `period` int(11) NOT NULL DEFAULT '0' COMMENT '第几期', + `item_id` int(11) NOT NULL DEFAULT '0' COMMENT '道具id', + `item_num` bigint NOT NULL DEFAULT '0' COMMENT '道具数量', + `createtime` int(11) NOT NULL COMMENT '创建时间', + `modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', + PRIMARY KEY (`idx`), + KEY `account_id` (`account_id`) +) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `t_power_exchange_record` +-- + +DROP TABLE IF EXISTS `t_power_exchange_record`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `t_power_exchange_record` ( + `idx` bigint(20) NOT NULL AUTO_INCREMENT, + `account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id', + `address` varchar(60) COMMENT 'address', + `period` int(11) NOT NULL DEFAULT '0' COMMENT '第几期', + `item_id` int(11) NOT NULL DEFAULT '0' COMMENT '道具id', + `item_num` bigint NOT NULL DEFAULT '0' COMMENT '道具数量', + `createtime` int(11) NOT NULL COMMENT '创建时间', + `modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', + PRIMARY KEY (`idx`), + KEY `account_id` (`account_id`) +) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `t_computing_power_period` +-- + +DROP TABLE IF EXISTS `t_computing_power_period`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `t_computing_power_period` ( + `idx` bigint(20) NOT NULL AUTO_INCREMENT, + `account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id', + `address` varchar(60) COMMENT 'address', + `period` int(11) NOT NULL DEFAULT '0' COMMENT '第几期', + `power` varchar(60) COMMENT '算力', + `reward_cec` varchar(60) COMMENT 'reward cec', + `reward1` int(11) NOT NULL DEFAULT '0' COMMENT '第1期奖励', + `reward2` int(11) NOT NULL DEFAULT '0' COMMENT '第2期奖励', + `reward3` int(11) NOT NULL DEFAULT '0' COMMENT '第3期奖励', + `reward4` int(11) NOT NULL DEFAULT '0' COMMENT '第4期奖励', + + `createtime` int(11) NOT NULL COMMENT '创建时间', + `modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', + PRIMARY KEY (`idx`), + KEY `account_id` (`account_id`) +) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */;