This commit is contained in:
aozhiwei 2021-12-02 14:21:42 +08:00
parent c060a3806a
commit 1f9765c833
4 changed files with 127 additions and 0 deletions

22
doc/Season.py Normal file
View File

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
import _common
class Season(object):
def __init__(self):
self.apis = [
{
'name': 'info',
'desc': '获取赛季信息',
'group': 'Season',
'url': 'webapp/index.php?c=Season&a=info',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
['info', _common.Season(), '赛季信息'],
]
},
]

67
doc/SeasonCard.py Normal file
View File

@ -0,0 +1,67 @@
# -*- coding: utf-8 -*-
import _common
class SeasonCard(object):
def __init__(self):
self.apis = [
{
'name': 'info',
'desc': '获取赛季手册信息',
'group': 'SeasonCard',
'url': 'webapp/index.php?c=SeasonCard&a=info',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
['info', _common.SeasonCard(), '赛季手册信息'],
]
},
{
'name': 'getReward',
'desc': '领取等级奖品',
'group': 'SeasonCard',
'url': 'webapp/index.php?c=SeasonCard&a=getReward',
'params': [
_common.ReqHead(),
['level', 0, '手册等级'],
],
'response': [
_common.RspHead(),
['award', _common.Award(), '奖励信息'],
['property_chg', _common.PropertyChg(), '属性变更'],
]
},
{
'name': 'buyLevel',
'desc': '购买赛季手册等级',
'group': 'SeasonCard',
'url': 'webapp/index.php?c=SeasonCard&a=buyLevel',
'params': [
_common.ReqHead(),
['level', 0, '购买的等级数'],
],
'response': [
_common.RspHead(),
['award', _common.Award(), '奖励信息'],
['property_chg', _common.PropertyChg(), '属性变更'],
]
},
{
'name': 'buyGiftPackage',
'desc': '购买赛季手册(礼包)',
'group': 'SeasonCard',
'url': 'webapp/index.php?c=SeasonCard&a=buyGiftPackage',
'params': [
_common.ReqHead(),
['pacakge_id', 0, '礼包id(1普通礼包 2豪华礼包)'],
],
'response': [
_common.RspHead(),
['award', _common.Award(), '奖励信息'],
['property_chg', _common.PropertyChg(), '属性变更'],
]
},
]

View File

@ -177,3 +177,19 @@ class Mission(object):
['target', 0, '任务进度-目标'],
['state', 0, '任务状态 0:可领取 1:已领取 2:未完成(不可领取)'],
]
class SeasonCard(object):
def __init__(self):
self.fields = [
['mission_id', 0, '任务id'],
['current', 0, '任务进度-当前'],
['target', 0, '任务进度-目标'],
['state', 0, '任务状态 0:可领取 1:已领取 2:未完成(不可领取)'],
]
class Season(object):
def __init__(self):
self.fields = [
]

View File

@ -230,6 +230,7 @@ CREATE TABLE `t_season` (
`account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id',
`season_id` int(11) NOT NULL DEFAULT '0' COMMENT '赛季id',
`card_lv` int(11) NOT NULL DEFAULT '0' COMMENT '赛季手册等级',
`card_exp` int(11) NOT NULL DEFAULT '0' COMMENT '赛季手册经验',
`total_times` int(11) NOT NULL DEFAULT '0' COMMENT '赛季场次总数',
`win_times` int(11) NOT NULL DEFAULT '0' COMMENT '赛季胜利场次',
`total_score` int(11) NOT NULL DEFAULT '0' COMMENT '赛季积分',
@ -242,4 +243,25 @@ CREATE TABLE `t_season` (
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t_season_card`
--
DROP TABLE IF EXISTS `t_season_card`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_season_card` (
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
`account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id',
`season_id` int(11) NOT NULL DEFAULT '0' COMMENT '赛季id',
`card_lv` int(11) NOT NULL DEFAULT '0' COMMENT '赛季手册等级',
`reward_received` 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`),
KEY `account_id_season_id` (`account_id`, `season_id`),
UNIQUE KEY `account_id_season_id_card_lv` (`account_id`, `season_id`, `card_lv`)
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
-- Dump completed on 2015-08-19 18:51:22