Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
82233b430b | ||
![]() |
428f0c5029 | ||
![]() |
9907a11796 | ||
![]() |
e4bcd6daac |
23
changed.md
23
changed.md
@ -1,23 +0,0 @@
|
||||
# 2024/08/09
|
||||
# modified: controller/BlockChainController.class.php
|
||||
# deleted: models/BoxOpenedEvent.php
|
||||
# deleted: models/BoxOrder.php
|
||||
# modified: models/Chip.php
|
||||
# deleted: models/Currency.php
|
||||
# modified: models/Gun.php
|
||||
# deleted: models/GunTalent.php
|
||||
# modified: models/Hero.php
|
||||
# deleted: models/LuckyBox.php
|
||||
# deleted: models/Market.php
|
||||
# deleted: models/NftUpEvent.php
|
||||
# deleted: models/NftUpReceive.php
|
||||
# deleted: models/Recharge.php
|
||||
# deleted: models/TransactionPrefee.php
|
||||
# deleted: models/Transfer.php
|
||||
# deleted: models/UserWalletRecord.php
|
||||
# deleted: models/Web2Order.php
|
||||
# deleted: models/Withdrawal.php
|
||||
# deleted: mt/Recharge.php
|
||||
# deleted: services/ContractConfig.php
|
||||
# deleted: services/LoginService.php
|
||||
# deleted: services/ShopService.php
|
@ -1,11 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'instance_id' => 1,
|
||||
'host' => 'mysql-host',
|
||||
'port' => 3306,
|
||||
'user' => 'root',
|
||||
'passwd' => 'keji178',
|
||||
'dbname' => 'accountdb1',
|
||||
);
|
||||
|
@ -1,23 +0,0 @@
|
||||
<?php
|
||||
|
||||
$title = 'Announcement on Handling the Ticket Anomaly Incident';
|
||||
|
||||
$content = <<<EOD
|
||||
We want to provide some important updates regarding the issue in Bounty Mode that occurred on July 7th. Due to a technical glitch, some players experienced abnormal entry ticket usage, allowing them to accumulate excessive amounts of Gold. Specifically, 68 accounts exploited this issue, collectively obtaining 134,710.9456 Gold, which was then spent in various ways.
|
||||
|
||||
To maintain fairness in the game, we have deducted the improperly gained Gold from these accounts. As a result, some accounts now show a negative balance. Players with negative balances will need to earn or deposit Gold to return their accounts to a positive balance. If they fail to do so by the end of P2E Season 1, they will not be able to reclaim their Genesis Hero and will automatically be enrolled in future Counter Fire activities.
|
||||
|
||||
We are pleased to see that the majority of players did not exploit this issue. As a token of our appreciation for your honesty and support, we will be rewarding all players who participated in Bounty Mode on July 7th with tickets; e.g., if you participated in 5 matches and won them, you will receive an additional 5 tickets as a thank you for your continued support.
|
||||
|
||||
Additionally, we want to extend our gratitude to those who spoke out to uphold community integrity during this incident. We will be providing special rewards to these players in future events as a gesture of our appreciation.
|
||||
|
||||
We apologize for any inconvenience this issue may have caused and thank you for your patience and understanding. We are working diligently to improve the game and ensure a fair and enjoyable experience for everyone.
|
||||
|
||||
Thank you for your continued support and understanding.
|
||||
EOD;
|
||||
|
||||
return array(
|
||||
'id' => 2024070901,
|
||||
'title' => $title,
|
||||
'content' => $content
|
||||
);
|
@ -1,10 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'instance_id' => 1,
|
||||
'host' => 'mysql-host',
|
||||
'port' => 3306,
|
||||
'user' => 'root',
|
||||
'passwd' => 'keji178',
|
||||
'dbname' => 'confdb_dev_1'
|
||||
);
|
@ -1,30 +0,0 @@
|
||||
<?php
|
||||
|
||||
const DBNAME_PREFIX = 'gamedb2006_dev_';
|
||||
const GLOBAL_TIME_OFFSET_KEY = 'gamedb2006_dev_:global_time_offset:';
|
||||
const NET_ID = 13473;
|
||||
const BUY_SERVER_PKEY = '6KJSOy=0oKbf@U^xtIR3';
|
||||
const OUTAPP_PKEY = 'e58f(1dcf22245985c21ff31f2f66ec4a^^TDAFF(Adaf)';
|
||||
const OUTAPP_PKEY1 = '520d8eAbB(8cf1^#$^&!@d833a42c820432PDAFE^^)';
|
||||
const LISTING_SWITCH = 0;
|
||||
const HALL_KEY = '520d8eAbB(8cf1^#$^&!@d833a42c820432PDAFE^^)';
|
||||
const MATCH_KEY = '520d8eAbB(8cf1^#$^&!@d833a42c820432PDAFE^^)';
|
||||
const MAIL_KEY = '520d8eAbB(8cf1^#$^&!@d833a42c820432PDAFE^^)';
|
||||
const MAIL_URL = 'https://gamemail-test.kingsome.cn/webapp/index.php';
|
||||
const LOGIN_URL = 'https://login-test.kingsome.cn/webapp/index.php';
|
||||
const LOCK_CONTRACT_ADDRESS = "0xc8607507451059cfae6ca4d07ec6f631ce8ef9f9";
|
||||
const HERO_CONTRACT_ADDRESS = "0xc8607507451059cfae6ca4d07ec6f631ce8ef9f9";
|
||||
const NORMAL_HERO_CONTRACT_ADDRESS = "0x994de61dd536b22f7e3bdb77aa3ef55aec938bfd";
|
||||
const ETH_LOCK_CONTRACT_ADDRESS = "0x7f2b4db626d878778e178b4f0c7ba3a2870c6dd0";
|
||||
const NFT_META_URL = 'https://nft-test.kingsome.cn';
|
||||
const SAPI_SECRET_KEYS = array(
|
||||
'~kCu8jYS)rJ5Ay_pZS_rT#&jOl)Qo0m)'
|
||||
);
|
||||
const GS_SECRET_KEYS = array(
|
||||
'BIgDh5J%uUktooKxT!IM7#m$NtB51%la'
|
||||
);
|
||||
const NOTICE_CHANNEL_ID = 'world_room_1';
|
||||
const CIRCUIT_MATCH_SERVER_LIST = array(
|
||||
9
|
||||
);
|
||||
define('PRESENT_FREE_ITEM', 1);
|
@ -1,11 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'instance_id' => 1,
|
||||
'host' => 'mysql-host',
|
||||
'port' => 3306,
|
||||
'user' => 'root',
|
||||
'passwd' => 'keji178',
|
||||
'dbname' => 'frienddb_dev_new'
|
||||
);
|
||||
|
@ -1,11 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
array(
|
||||
'instance_id' => 1,
|
||||
'host' => 'mysql-host',
|
||||
'port' => 3306,
|
||||
'user' => 'root',
|
||||
'passwd' => 'keji178',
|
||||
)
|
||||
);
|
@ -1,16 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
array(
|
||||
'instance_id' => 1,
|
||||
'host' => 'redis-host',
|
||||
'port' => 6379,
|
||||
'passwd' => '',
|
||||
),
|
||||
array(
|
||||
'instance_id' => 2,
|
||||
'host' => 'redis-host',
|
||||
'port' => 6379,
|
||||
'passwd' => '',
|
||||
),
|
||||
);
|
@ -1,10 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'instance_id' => 1,
|
||||
'host' => 'mysql-host',
|
||||
'port' => 3306,
|
||||
'user' => 'root',
|
||||
'passwd' => 'keji178',
|
||||
'dbname' => 'bcnft_dev',
|
||||
);
|
@ -1,10 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'instance_id' => 1,
|
||||
'host' => 'mysql-host',
|
||||
'port' => 3306,
|
||||
'user' => 'root',
|
||||
'passwd' => 'root',
|
||||
'dbname' => 'frienddb_dev_new',
|
||||
);
|
@ -1,10 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'instance_id' => 1,
|
||||
'host' => 'mysql-host',
|
||||
'port' => 3306,
|
||||
'user' => 'root',
|
||||
'passwd' => 'keji178',
|
||||
'dbname' => 'logdb_dev_1'
|
||||
);
|
@ -1,10 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'instance_id' => 1,
|
||||
'host' => 'mysql-host',
|
||||
'port' => 3306,
|
||||
'user' => 'root',
|
||||
'passwd' => 'keji178',
|
||||
'dbname' => 'maildb_dev_1'
|
||||
);
|
@ -1,7 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'instance_id' => 1,
|
||||
'host' => '127.0.0.1',
|
||||
'port' => 7521
|
||||
);
|
@ -1,9 +0,0 @@
|
||||
<?php
|
||||
|
||||
$gOnlyRoutes1 = array(
|
||||
'Ops' => 1,
|
||||
'Market' => 1,
|
||||
);
|
||||
|
||||
$gExcludeRoutes = array(
|
||||
);
|
@ -1,10 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'heroChain' => 1,
|
||||
'heroUp' => 1,
|
||||
'goldSyn' => 1,
|
||||
'heroPieceSyn' => 1,
|
||||
'chipPieceSyn' => 1,
|
||||
);
|
||||
|
@ -1,5 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'http://10.10.9.15:7672/webapp/index.php'
|
||||
);
|
@ -1,12 +0,0 @@
|
||||
<?php
|
||||
|
||||
const DBNAME_PREFIX = 'gamedb2006_dev_';
|
||||
const GLOBAL_TIME_OFFSET_KEY = 'gamedb2006_dev_:global_time_offset:';
|
||||
const NET_ID = 421613;
|
||||
const BUY_SERVER_PKEY = 'iG4Rpsa)6U31$H#^T85$^^3';
|
||||
const OUTAPP_PKEY = 'e58f(1dcf22245985c21ff31f2f66ec4a^^TDAFF(Adaf)';
|
||||
const OUTAPP_PKEY1 = '520d8eAbB(8cf1^#$^&!@d833a42c820432PDAFE^^)';
|
||||
const LISTING_SWITCH = 0;
|
||||
const HALL_KEY = '520d8eAbB(8cf1^#$^&!@d833a42c820432PDAFE^^)';
|
||||
const MATCH_KEY = '520d8eAbB(8cf1^#$^&!@d833a42c820432PDAFE^^)';
|
||||
define('PRESENT_FREE_ITEM', 1);
|
@ -1,11 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
array(
|
||||
'instance_id' => 1,
|
||||
'host' => 'mysql-host',
|
||||
'port' => 3306,
|
||||
'user' => 'root',
|
||||
'passwd' => 'keji178',
|
||||
)
|
||||
);
|
@ -1,16 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
array(
|
||||
'instance_id' => 1,
|
||||
'host' => 'redis-host',
|
||||
'port' => 6379,
|
||||
'passwd' => '',
|
||||
),
|
||||
array(
|
||||
'instance_id' => 2,
|
||||
'host' => 'redis-host',
|
||||
'port' => 6379,
|
||||
'passwd' => '',
|
||||
),
|
||||
);
|
@ -1,10 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'instance_id' => 1,
|
||||
'host' => 'mysql-host',
|
||||
'port' => 3306,
|
||||
'user' => 'root',
|
||||
'passwd' => 'keji178',
|
||||
'dbname' => 'bcnft_dev',
|
||||
);
|
@ -1,10 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'instance_id' => 1,
|
||||
'host' => 'mysql-host',
|
||||
'port' => 3306,
|
||||
'user' => 'root',
|
||||
'passwd' => 'root',
|
||||
'dbname' => 'frienddb_dev_new',
|
||||
);
|
@ -1,7 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'instance_id' => 1,
|
||||
'host' => '127.0.0.1',
|
||||
'port' => 7521
|
||||
);
|
@ -1,9 +0,0 @@
|
||||
<?php
|
||||
|
||||
$gOnlyRoutes1 = array(
|
||||
'Ops' => 1,
|
||||
'Market' => 1,
|
||||
);
|
||||
|
||||
$gExcludeRoutes = array(
|
||||
);
|
@ -1,5 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'http://127.0.0.1:7671/webapp/index.php'
|
||||
);
|
@ -1,29 +0,0 @@
|
||||
import _common
|
||||
|
||||
class AAGameLog(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'method': 'POST',
|
||||
'name': 'customReport',
|
||||
'desc': '上报自定义日志(httpbody自定义)',
|
||||
'group': '!AAGameLog',
|
||||
'url': 'https://gamelog-test.kingsome.cn/webapp/index.php?c=GameLog&a=customReport',
|
||||
'is_json_params': True,
|
||||
'request_params': [
|
||||
_common.ReqHead(),
|
||||
['gameid', '', '游戏id'],
|
||||
['channel', '', '渠道编号'],
|
||||
['event_name', '', '事件名'],
|
||||
['account_id', '', '[可选]账号id(web端不要传该字段)'],
|
||||
['session_id', '', '[可选]会话id(web端不要传该字段)'],
|
||||
['localuuid', '', '本地唯一Id'],
|
||||
],
|
||||
'params': [
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
]
|
@ -1,69 +0,0 @@
|
||||
import _common
|
||||
|
||||
class AAGameMail(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'getMailList',
|
||||
'desc': '获取我的邮件列表',
|
||||
'group': '!AAGameMail',
|
||||
'url': 'https://gamemail-test.kingsome.cn/webapp/index.php?c=Mail&a=getMailList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['account_id', '', '账号id'],
|
||||
['session_id', '', '会话id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!maillist', [_common.MFGameMail()], '邮件列表'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'markMail',
|
||||
'desc': '设置邮件标记',
|
||||
'group': '!AAGameMail',
|
||||
'url': 'https://gamemail-test.kingsome.cn/webapp/index.php?c=Mail&a=markMail',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['account_id', '', '账号id'],
|
||||
['session_id', '', '会话id'],
|
||||
['mail_ids', '', '邮件id列表以","分割'],
|
||||
['flag', '', '标志位 read:已读'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'getAttachment',
|
||||
'desc': '领取邮件附件(注意:领取邮件附件后邮件自动删除)',
|
||||
'group': '!AAGameMail',
|
||||
'url': 'https://gamemail-test.kingsome.cn/webapp/index.php?c=Mail&a=getAttachment',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['account_id', '', '账号id'],
|
||||
['session_id', '', '会话id'],
|
||||
['mail_ids', '', '邮件id列表以","分割'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['award', _common.Award(), '奖励信息'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'deleteMails',
|
||||
'desc': '删除邮件',
|
||||
'group': '!AAGameMail',
|
||||
'url': 'https://gamemail-test.kingsome.cn/webapp/index.php?c=Mail&a=deleteMails',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['account_id', '', '账号id'],
|
||||
['session_id', '', '会话id'],
|
||||
['mail_ids', '', '邮件id列表以","分割'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
]
|
180
doc/AALogin.py
180
doc/AALogin.py
@ -1,180 +0,0 @@
|
||||
import _common
|
||||
|
||||
class AALogin(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'getNonce',
|
||||
'desc': '获取Nonce',
|
||||
'group': '!AALogin',
|
||||
'url': 'https://login-test.kingsome.cn/webapp/index.php?c=Login&a=getNonce',
|
||||
'params': [
|
||||
['gameid', '', '游戏id'],
|
||||
['account', '', '钱包账号(oxxxx)'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['nonce', '', 'nonce']
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'getAnnouncement',
|
||||
'desc': '获得公告内容',
|
||||
'group': '!AALogin',
|
||||
'url': 'https://login-test.kingsome.cn/webapp/index.php?c=Annc&a=getAnnouncement',
|
||||
'params': [
|
||||
['gameid', '', '游戏id'],
|
||||
['channel', '', '渠道编号'],
|
||||
['_packageid', 0, '包id 1:android 2:ios'],
|
||||
['_version', '', '版本号'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['type', 0, '0:无公告 1:停服公告(不能进游戏) 2:普通公告'],
|
||||
['title', '', '公告标题'],
|
||||
['content', '', '公告内容'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'auth(待废弃)',
|
||||
'desc': '登录验证',
|
||||
'group': '!AALogin',
|
||||
'url': 'https://login-test.kingsome.cn/webapp/index.php?c=Login&a=auth',
|
||||
'params': [
|
||||
['gameid', '', '游戏id'],
|
||||
['channel', '', '渠道编号'],
|
||||
['token', '', '微信:登录时获取的code 手Q:openkey vivo:空'],
|
||||
['anonymous_token', '', '匿名用户token目前只有头条用到(anonymous\_code)'],
|
||||
['openid', '', '手Q、vivo登录时需要使用'],
|
||||
['env', '', 'dev:开发环境 test:测试环境 banshu:版署 其它:正式环境'],
|
||||
['is_guest', 0, '是否游客登录'],
|
||||
['pkg_name', '', '只有oppo, vivo需要传'],
|
||||
['poly_sdk_channel', '', '聚合类sdk channel(当poly\_sdk\_channel不为空时服务器忽略channel参数)'],
|
||||
['poly_sdk_subchannel', '', '聚合类sdk 子channel(quicksdk时对应channelCode)'],
|
||||
['type', 0, '只有channel为6516时才有意义(默认0),0:原生登录 1:market登录'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['activated', 0, '是否已激活'],
|
||||
['session_id', '', '会话id'],
|
||||
['channel', '', '用户channel'],
|
||||
['zoneid', '', '用户区id'],
|
||||
['account_id', '', 'account_id'],
|
||||
['openid', '', '用户openid'],
|
||||
['unionid', '', '用户unionid(可能为空)'],
|
||||
['wid', '', 'weak id弱关系id(可能为空)'],
|
||||
['sid', '', 'strong id强关系id(可能为空)'],
|
||||
['ptid', '', 'ptid,一般为手机号(可能为空)'],
|
||||
['nikename', '', 'nikename'],
|
||||
['country', '', 'country'],
|
||||
['province', '', 'province'],
|
||||
['city', '', 'city'],
|
||||
['avatar_url', '', 'avatar_url'],
|
||||
['sex', 0, '性别 0:未设置 1:女 2:男'],
|
||||
['userinfo_expired', 0, '用户信息是否已过期(目前只有微信平台才有意义其他平台默认返回未过期)'],
|
||||
['server_time', 0, '回合制专用字段-服务器当前utc时间'],
|
||||
['server_id', 0, '回合制专用字段-最后登陆的服务器id'],
|
||||
['server_name', '', '回合制专用字段-最后登陆的服务器名'],
|
||||
['server_ip', '', '回合制专用字段-最后登陆的服务器ip'],
|
||||
['is_holiday', 0, '回合制专用字段-是否节假日只有测试服才有该字段!!!'],
|
||||
['green_time', 0, '回合制专用字段-健康游戏时间(单位小时) 节假日1.5,平时3,只有测试服才有该字段!!!'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'POST',
|
||||
'name': 'auth2',
|
||||
'desc': '登录验证(errcode == 505 需要验证码)',
|
||||
'group': '!AALogin',
|
||||
'url': 'https://login-test.kingsome.cn/webapp/index.php?c=Login&a=auth2',
|
||||
'is_json_params': True,
|
||||
'params': [
|
||||
['channel', '', '渠道id 1:immutable 2:游客'],
|
||||
['data', '', 'channel==1时传jwt channel=2时传客户端本地生成的id该id channel=3洪亮聚合登录的jwt'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['account_id', '', 'account_id'],
|
||||
['session_id', '', '会话id'],
|
||||
['server_time', 0, '回合制专用字段-服务器当前utc时间'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'POST',
|
||||
'name': 'verifyAccount',
|
||||
'desc': '校验账号信息',
|
||||
'group': '!AALogin',
|
||||
'url': 'https://login-test.kingsome.cn/webapp/index.php?c=Login&a=verifyAccount',
|
||||
'is_json_params': True,
|
||||
'params': [
|
||||
['data', '', 'idtoken'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['state', '', '账号状态 1:可以直接进游戏 2:需要兑换码'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'POST',
|
||||
'name': 'useExchangeCode',
|
||||
'desc': '使用兑换码',
|
||||
'group': '!AALogin',
|
||||
'url': 'https://login-test.kingsome.cn/webapp/index.php?c=Login&a=useExchangeCode',
|
||||
'is_json_params': True,
|
||||
'params': [
|
||||
['exchange_code', '', '兑换码'],
|
||||
['data', '', 'idtoken'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'getSwitch',
|
||||
'desc': '获取开关',
|
||||
'group': '!AALogin',
|
||||
'url': 'https://login-test.kingsome.cn/webapp/index.php?c=ServerSwitch&a=getSwitch',
|
||||
'params': [
|
||||
['gameid', '', '游戏id'],
|
||||
['_packageid', 0, '包id 1:android 2:ios'],
|
||||
['_version', '', '版本号'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['examining', 0, '是否审核中'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'getWhiteList',
|
||||
'desc': '获取白名单',
|
||||
'group': '!AALogin',
|
||||
'url': 'https://login-test.kingsome.cn/webapp/index.php?c=ServerSwitch&a=getWhiteList',
|
||||
'params': [
|
||||
['gameid', '', '游戏id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!white_list',[
|
||||
['id', '', '邮件地址'],
|
||||
], '白名单']
|
||||
]
|
||||
},
|
||||
]
|
||||
self.internalApis = [
|
||||
{
|
||||
'method': 'POST',
|
||||
'name': 'verifyJwt',
|
||||
'desc': 'jwt验证',
|
||||
'group': '!AALogin',
|
||||
'url': 'https://login-test.kingsome.cn/webapp/index.php?c=Login&a=verifyJwt',
|
||||
'is_json_params': True,
|
||||
'params': [
|
||||
['jwt', '', 'jwt'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['account_id', '', 'account_id'],
|
||||
['address', '', 'address'],
|
||||
]
|
||||
},
|
||||
]
|
655
doc/AAMarket.py
655
doc/AAMarket.py
@ -1,655 +0,0 @@
|
||||
import _common
|
||||
|
||||
class circuitInfo(object):
|
||||
|
||||
def __init__(self):
|
||||
self.fields = [
|
||||
['start_time', 0, '开始时间'],
|
||||
['end_time', 0, '结束时间'],
|
||||
['ranking', 0, '排名'],
|
||||
['score', 0, '积分'],
|
||||
]
|
||||
|
||||
class rankingInfo(object):
|
||||
|
||||
def __init__(self):
|
||||
self.fields = [
|
||||
['account_id', 0, 'account'],
|
||||
['name', 0, '名字'],
|
||||
['head_id', 0, '头像'],
|
||||
['head_frame', 0, '头像框'],
|
||||
['hero_id', 0, '英雄ItemId'],
|
||||
['skin_id', 0, '皮肤ItemId'],
|
||||
['ranking', 0, '排名'],
|
||||
['score', 0, '积分'],
|
||||
['score_boost', 0, '加成的积分'],
|
||||
['cec', 0, 'cec(个人榜信息才有)'],
|
||||
]
|
||||
|
||||
class AAMarket(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'method': 'POST',
|
||||
'name': '/api/market/product/list/:net_id',
|
||||
'desc': '获取上架出售的NFTs(瀑布流式api) jwtheader为可选参数',
|
||||
'group': '!AAMarket',
|
||||
'url': 'https://market-test.kingsome.cn/api/market/product/list/:net_id',
|
||||
'headers': _common.MaybeJwtHeader,
|
||||
'is_json_params': True,
|
||||
'request_params': [
|
||||
[':net_id', 0, '链id'],
|
||||
],
|
||||
'params': [
|
||||
['page_size', 0, '每页大小'],
|
||||
['cursor', '', '游标 第一页传空'],
|
||||
['search', [
|
||||
['name', '', '名字查询 空(所有)'],
|
||||
], '模糊查询'],
|
||||
['filter', [
|
||||
['price_min', '', '价格下限 空(无下限)'],
|
||||
['price_max', '', '价格上限 空(无上限)'],
|
||||
['!item_ids', [0], '道具id列表 空(所有)'],
|
||||
['!hero_ranks', [0], '英雄品阶列表 空(所有)']
|
||||
], '过滤条件'],
|
||||
['sort', [
|
||||
['!fields', [
|
||||
['name', '', '字段名 目前支持的字段(price)'],
|
||||
['type', 0, '排序方式 -1:倒序 0:默认排序 1:正序'],
|
||||
], '排序字段']
|
||||
], '排序规则'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['page', _common.StreamPage(), '分页信息'],
|
||||
['!rows', [_common.MarketGoods()], '数据'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'GET',
|
||||
'name': '/api/market/product/query_price',
|
||||
'desc': '查询在售卖商品价格',
|
||||
'group': '!AAMarket',
|
||||
'url': 'https://market-test.kingsome.cn/api/market/product/query_price',
|
||||
'params': [
|
||||
['net_id', 0, '链id'],
|
||||
['contract_address', '', '合约地址'],
|
||||
['item_id', '', '道具id'],
|
||||
['quality', '', '道具品质(目前只有Hero生效)'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['lowest_price_goods', _common.MarketGoods(), '最低价格商品(如果没则为null)'],
|
||||
['highest_price_goods', _common.MarketGoods(), '最高价格商品(如果没则为null)'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'GET',
|
||||
'name': '/api/market/product/goods/:net_id/:contract_address/:token_id',
|
||||
'desc': '获取单个商品信息',
|
||||
'group': '!AAMarket',
|
||||
'url': 'https://market-test.kingsome.cn/api/market/product/goods/:net_id/:contract_address/:token_id',
|
||||
'params': [
|
||||
[':net_id', 0, '链id'],
|
||||
[':contract_address', '', '合约地址'],
|
||||
[':token_id', '', 'token_id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['data', _common.MarketGoods(), '商品信息(如果没则为null), 如果未上架则data.event==null'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'GET',
|
||||
'name': '/api/market/product/category/:net_id',
|
||||
'desc': '获取上架出售的NFTs分类数量',
|
||||
'group': '!AAMarket',
|
||||
'url': 'https://market-test.kingsome.cn/api/market/product/category/:net_id',
|
||||
'params': [
|
||||
[':net_id', 0, '链id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!data', [
|
||||
['item_id', 0, '道具id'],
|
||||
['num', 0, '商品数量'],
|
||||
], '分类数量'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': '/api/market/transaction/history/:net_id/:account_address',
|
||||
'desc': '获取账号交易历史',
|
||||
'group': '!AAMarket',
|
||||
'url': 'https://market-test.kingsome.cn/api/market/transaction/history/:net_id/:account_address',
|
||||
'params': [
|
||||
[':net_id', 0, '链id'],
|
||||
[':account_address', '', '钱包地址'],
|
||||
['type', '', '0:全部 1:买进 2:卖出'],
|
||||
['page_size', 0, '每页大小'],
|
||||
['cursor', '', '游标 第一页传空'],
|
||||
['search_name', '', 'nft名字 空(所有)'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['page', _common.StreamPage(), '分页信息'],
|
||||
['!rows', [_common.SaleGoods()], '数据'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': '/api/asset/:net_id/:account_address',
|
||||
'desc': '获取账号资产',
|
||||
'group': '!AAMarket',
|
||||
'url': 'https://market-test.kingsome.cn/api/asset/:net_id/:account_address',
|
||||
'params': [
|
||||
[':net_id', 0, '链id'],
|
||||
[':account_address', '', '钱包地址'],
|
||||
['type', '', '0:全部 1:上架中 2:未上架 3:质押中'],
|
||||
['page_size', 0, '每页大小'],
|
||||
['cursor', '', '游标 第一页传空'],
|
||||
['search_name', '', 'nft名字 空(所有)'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['page', _common.StreamPage(), '分页信息'],
|
||||
['!rows', [_common.AssetNftInfo()], '数据'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'GET',
|
||||
'name': '/api/listing/:net_id/:account_address',
|
||||
'desc': '获取自己上链商品',
|
||||
'group': '!AAMarket',
|
||||
'url': 'https://market-test.kingsome.cn/api/listing/:net_id/:account_address',
|
||||
'params': [
|
||||
[':net_id', 0, '链id'],
|
||||
[':account_address', '', '钱包地址'],
|
||||
['page_size', 0, '每页大小'],
|
||||
['cursor', '', '游标 第一页传空'],
|
||||
['search_name', '', 'nft名字 空(所有)'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['page', _common.StreamPage(), '分页信息'],
|
||||
['!data', [_common.MarketGoods()], '数据'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'GET',
|
||||
'name': '/api/shopcart/list',
|
||||
'desc': '购物车-商品列表',
|
||||
'group': '!AAMarket',
|
||||
'url': 'https://market-test.kingsome.cn/api/shopcart/list',
|
||||
'headers': _common.JwtHeader,
|
||||
'permission': _common.LoginRequired,
|
||||
'params': [
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!data', [_common.MarketGoods()], '数据'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'POST',
|
||||
'name': '/api/shopcart/add',
|
||||
'desc': '购物车-添加商品',
|
||||
'group': '!AAMarket',
|
||||
'url': 'https://market-test.kingsome.cn/api/shopcart/add',
|
||||
'headers': _common.JwtHeader,
|
||||
'permission': _common.LoginRequired,
|
||||
'is_json_params': True,
|
||||
'params': [
|
||||
['net_id', 0, '链id'],
|
||||
['!tokens', [
|
||||
['token_id', '', 'token_id'],
|
||||
['contract_address', '', 'contract_address'],
|
||||
], 'nft list']
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'POST',
|
||||
'name': '/api/shopcart/del',
|
||||
'desc': '购物车-删除商品',
|
||||
'group': '!AAMarket',
|
||||
'url': 'https://market-test.kingsome.cn/api/shopcart/del',
|
||||
'headers': _common.JwtHeader,
|
||||
'permission': _common.LoginRequired,
|
||||
'is_json_params': True,
|
||||
'params': [
|
||||
['net_id', 0, '链id'],
|
||||
['!tokens', [
|
||||
['token_id', '', 'token_id'],
|
||||
['contract_address', '', 'contract_address'],
|
||||
], 'nft list']
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'POST',
|
||||
'name': '/api/shopcart/clear',
|
||||
'desc': '购物车-清空购物车',
|
||||
'group': '!AAMarket',
|
||||
'url': 'https://market-test.kingsome.cn/api/shopcart/clear',
|
||||
'headers': _common.JwtHeader,
|
||||
'permission': _common.LoginRequired,
|
||||
'params': [
|
||||
['net_id', 0, '链id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'POST',
|
||||
'name': '/api/nft/stacking/unlock',
|
||||
'desc': '质押-unlock',
|
||||
'group': '!AAMarket',
|
||||
'url': 'https://market-test.kingsome.cn/api/nft/stacking/unlock',
|
||||
'headers': _common.JwtHeader,
|
||||
'permission': _common.LoginRequired,
|
||||
'is_json_params': True,
|
||||
'params': [
|
||||
['net_id', 0, '链id'],
|
||||
['contract_address', '', 'contract_address'],
|
||||
['!tokens', [
|
||||
['token_id', '', 'token_id'],
|
||||
], 'nft list(目前只支持英雄并且只支持一个)']
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['trans_id', '', '事务id'],
|
||||
['trans_req', _common.MFTransactionRequest(), '调用合约参数'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'POST',
|
||||
'name': '/api/ingame/asset/hero/list',
|
||||
'desc': '获取游戏内资产-英雄',
|
||||
'group': '!AAMarket',
|
||||
'url': 'https://market-test.kingsome.cn/api/ingame/asset/hero/list',
|
||||
'headers': _common.JwtHeader,
|
||||
'is_json_params': True,
|
||||
'request_params': [
|
||||
],
|
||||
'params': [
|
||||
['page_size', 0, '每页大小'],
|
||||
['cursor', '', '游标 第一页传空'],
|
||||
['search', [
|
||||
['name', '', '名字查询 空(所有)'],
|
||||
], '模糊查询'],
|
||||
['filter', [
|
||||
['!item_ids', [0], '道具id列表 空(所有)'],
|
||||
['!hero_ranks', [0], '英雄品阶列表 空(所有)']
|
||||
], '过滤条件'],
|
||||
['sort', [
|
||||
['!fields', [
|
||||
], '排序字段']
|
||||
], '排序规则'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['page', _common.StreamPage(), '分页信息'],
|
||||
['!rows', [_common.MarketGoods()], '数据'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'POST',
|
||||
'name': '/api/ingame/asset/hero/mint',
|
||||
'desc': '游戏内资产-英雄mint',
|
||||
'group': '!AAMarket',
|
||||
'url': 'https://market-test.kingsome.cn/api/ingame/asset/hero/mint',
|
||||
'headers': _common.JwtHeader,
|
||||
'permission': _common.LoginRequired,
|
||||
'is_json_params': True,
|
||||
'params': [
|
||||
['to_address', '', '目标address'],
|
||||
['!hero_uniids', [''], '英雄uniid列表(目前只支持1个)'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['trans_id', '', '事务id'],
|
||||
['trans_req', _common.MFTransactionRequest(), '调用合约参数'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'GET',
|
||||
'name': '/api/user/:account_address',
|
||||
'desc': '获取用户信息',
|
||||
'group': '!AAMarket',
|
||||
'headers': _common.MaybeJwtHeader,
|
||||
'url': 'https://market-test.kingsome.cn/api/user/:account_address',
|
||||
'params': [
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['nickname', '', '昵称'],
|
||||
['email', '', 'email(因为隐私问题jwt关联的地址和:account_address相等时才返回email)'],
|
||||
['contribution_point', 0, '贡献点'],
|
||||
['gold', '', '金币数'],
|
||||
['diamond', '', '钻石数'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'GET',
|
||||
'name': '/api/activity/stacking/expected_daily/:account_address',
|
||||
'desc': '质押活动-获取每日预期所得',
|
||||
'group': '!AAMarket',
|
||||
'url': '/api/activity/stacking/expected_daily/:account_address',
|
||||
'params': [
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['contribution_point', 0, '贡献点'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'GET',
|
||||
'name': '/api/activity/stacking/history/:account_address',
|
||||
'desc': '质押活动-获取每日所得历史记录',
|
||||
'group': '!AAMarket',
|
||||
'url': '/api/activity/stacking/history/:account_address',
|
||||
'params': [
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!rows', [
|
||||
['date', 0, '日期utc时间'],
|
||||
['contribution_point', 0, '贡献点'],
|
||||
], '数据'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'GET',
|
||||
'name': '/api/activity/diamond/history/:account_address',
|
||||
'desc': '钻石-充值/消费记录',
|
||||
'group': '!AAMarket',
|
||||
'url': '/api/activity/diamond/history/:account_address',
|
||||
'params': [
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!rows', [
|
||||
['type', 0, '0:充值 1:消费'],
|
||||
['date', 0, 'utc时间'],
|
||||
['amount', '', '数量'],
|
||||
], '数据'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'GET',
|
||||
'name': '/api/activity/bitget/mission/newuser/progress',
|
||||
'desc': 'bitget活动-新用户任务进度',
|
||||
'group': '!AAMarket',
|
||||
'url': '/api/activity/bitget/mission/newuser/progress',
|
||||
'params': [
|
||||
['email', '', '邮箱地址'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!missions', [
|
||||
['mission_id', 0, '1:玩游戏次数'],
|
||||
['current', 0, '当前进度'],
|
||||
['target', 0, '任务目标'],
|
||||
], '任务列表'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'GET',
|
||||
'name': '/api/activity/cec/contribution/:account_address',
|
||||
'desc': 'cec贡献点活动',
|
||||
'group': '!AAMarket',
|
||||
'url': '/api/activity/cec/contribution/:account_address',
|
||||
'params': [
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['info', _common.CecContributionActivity(), 'cec贡献点活动'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'GET',
|
||||
'name': '/api/activity/contribution/history/:account_address',
|
||||
'desc': '贡献点活动-获得历史',
|
||||
'group': '!AAMarket',
|
||||
'url': '/api/activity/contribution/history/:account_address',
|
||||
'params': [
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!rows', [
|
||||
['type', 0, '1:质押 2:游戏内消费金币'],
|
||||
['give_time', 0, '获得时间'],
|
||||
['contribution_point', 0, '贡献点'],
|
||||
], '数据'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'GET',
|
||||
'name': '/api/chain/txhash/:net_id/:txhash',
|
||||
'desc': '返回txhash是否已被服务器确认',
|
||||
'group': '!AAMarket',
|
||||
'url': '/api/chain/txhash/:net_id/:txhash',
|
||||
'params': [
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['confirmed', 0, '是否已确认'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'POST',
|
||||
'name': '/api/chain/event/activity/:account_address',
|
||||
'desc': '获取钱包链活动',
|
||||
'group': '!AAMarket',
|
||||
'url': 'https://market-test.kingsome.cn/api/chain/activity/:account_address',
|
||||
'is_json_params': True,
|
||||
'request_params': [
|
||||
],
|
||||
'params': [
|
||||
['page_size', 0, '每页大小'],
|
||||
['cursor', '', '游标 第一页传空'],
|
||||
['search', [
|
||||
['name', '', '名字查询 空(所有)'],
|
||||
], '模糊查询'],
|
||||
['filter', [
|
||||
['!item_ids', [0], '道具id列表 空(所有)'],
|
||||
], '过滤条件'],
|
||||
['sort', [
|
||||
['!fields', [
|
||||
['name', '', '字段名 目前支持的字段'],
|
||||
['type', 0, '排序方式 -1:倒序 0:默认排序 1:正序'],
|
||||
], '排序字段']
|
||||
], '排序规则目前无'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['page', _common.StreamPage(), '分页信息'],
|
||||
['!rows', [_common.ChainActivity()], '数据'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'GET',
|
||||
'name': '/api/recharge/goods',
|
||||
'desc': '充值-商品列表',
|
||||
'group': '!AAMarket',
|
||||
'url': 'https://market-test.kingsome.cn/api/recharge/goods',
|
||||
'is_json_params': False,
|
||||
'request_params': [
|
||||
],
|
||||
'params': [
|
||||
['net_id', 0, '链id'],
|
||||
['account_address', '', '钱包地址[可选]'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['contribution', 0, '通过充值获得的贡献点数'],
|
||||
['!rows', [_common.RechargeGoods()], '数据'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'POST',
|
||||
'name': '/api/recharge/buy',
|
||||
'desc': '充值-购买',
|
||||
'group': '!AAMarket',
|
||||
'url': 'https://market-test.kingsome.cn/api/recharge/buy',
|
||||
'headers': _common.PassportJwtHeader,
|
||||
'is_json_params': True,
|
||||
'request_params': [
|
||||
],
|
||||
'params': [
|
||||
['net_id', 0, '链id'],
|
||||
['goods_id', '', '商品id'],
|
||||
['goods_num', '', '商品数量'],
|
||||
['account_address', '', '钱包地址(一般为小狐狸)'],
|
||||
['currency_address', '', '货币地址'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!calls', [
|
||||
['trans_id', '', '事务id'],
|
||||
['trans_req', _common.MFTransactionRequest(), '调用合约参数'],
|
||||
], '合约调用']
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'POST',
|
||||
'name': '/api/recharge/buy_with_email',
|
||||
'desc': '充值-通过邮件购买',
|
||||
'group': '!AAMarket',
|
||||
'url': 'https://market-test.kingsome.cn/api/recharge/buy_with_email',
|
||||
'headers': _common.JcJwtHeader,
|
||||
'is_json_params': True,
|
||||
'request_params': [
|
||||
],
|
||||
'params': [
|
||||
['net_id', 0, '链id'],
|
||||
['goods_id', '', '商品id'],
|
||||
['goods_num', '', '商品数量'],
|
||||
['account_address', '', '钱包地址(一般为小狐狸)'],
|
||||
['currency_address', '', '货币地址'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!calls', [
|
||||
['trans_id', '', '事务id'],
|
||||
['trans_req', _common.MFTransactionRequest(), '调用合约参数'],
|
||||
], '合约调用']
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'POST',
|
||||
'name': '/api/recharge/history/:net_id/:account_address',
|
||||
'desc': '充值-历史',
|
||||
'group': '!AAMarket',
|
||||
'url': 'https://market-test.kingsome.cn/api/recharge/history/:net_id/:account_address',
|
||||
'headers': _common.JwtHeader,
|
||||
'is_json_params': True,
|
||||
'request_params': [
|
||||
],
|
||||
'params': [
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['page', _common.StreamPage(), '分页信息'],
|
||||
['!rows', [_common.RechargeHistory()], '数据'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'POST',
|
||||
'name': '/api/vip/bind',
|
||||
'desc': '绑定vip',
|
||||
'group': '!AAMarket',
|
||||
'url': 'https://market-test.kingsome.cn/api/vip/bind',
|
||||
'is_json_params': True,
|
||||
'headers': _common.JcJwtHeader,
|
||||
'request_params': [
|
||||
],
|
||||
'params': [
|
||||
['passport_jwt', 0, 'passport_jwt'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'GET',
|
||||
'name': '/api/vip/info',
|
||||
'desc': 'vip绑定信息',
|
||||
'group': '!AAMarket',
|
||||
'url': 'https://market-test.kingsome.cn/api/vip/info',
|
||||
'headers': _common.JcJwtHeader,
|
||||
'params': [
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['info', _common.VipInfo(), 'vip信息'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'GET',
|
||||
'name': '/api/vip/details',
|
||||
'desc': 'vip等级详情',
|
||||
'group': '!AAMarket',
|
||||
'url': 'https://market-test.kingsome.cn/api/vip/details',
|
||||
'headers': _common.JcJwtHeader,
|
||||
'params': [
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['info', _common.VipLevelInfo(), 'vip等级信息'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'GET',
|
||||
'name': '/api/server_switch',
|
||||
'desc': '获取功能开关',
|
||||
'group': '!AAMarket',
|
||||
'url': 'https://market-test.kingsome.cn/api/server_switch',
|
||||
'params': [
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['data', [
|
||||
['heroChain',0,'英雄上链'],
|
||||
['heroUp',0,'英雄升阶'],
|
||||
['goldSyn',0,'金币合成'],
|
||||
['heroPieceSyn',0,'英雄碎片合成'],
|
||||
['chipPieceSyn',0,'芯片碎片合成'],
|
||||
['shop',0,'商店'],
|
||||
], '开关信息(如果没有则默认为未开启)'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'GET',
|
||||
'name': '/api/circuit_ranking',
|
||||
'desc': '巡回赛赛季排行',
|
||||
'group': '!AAMarket',
|
||||
'url': 'https://market-test.kingsome.cn/api/circuit_ranking',
|
||||
'params': [
|
||||
['address', '0', 'address'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!rank_list', [rankingInfo()], '榜'],
|
||||
['info', circuitInfo(), '信息'],
|
||||
]
|
||||
},{
|
||||
'name': '/api/circuit_phase_ranking',
|
||||
'desc': '巡回赛周期排行',
|
||||
'group': '!AAMarket',
|
||||
'url': 'https://market-test.kingsome.cn/api/circuit_phase_ranking',
|
||||
'params': [
|
||||
['address', '0', 'address'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!rank_list', [rankingInfo()], '榜'],
|
||||
['info', circuitInfo(), '信息'],
|
||||
]
|
||||
}
|
||||
]
|
83
doc/AANft.py
83
doc/AANft.py
@ -1,83 +0,0 @@
|
||||
import _common
|
||||
|
||||
class AANft(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': '/hero/home_meta/:net_id',
|
||||
'desc': '获取英雄nft元信息主页',
|
||||
'group': '!AANft',
|
||||
'url': 'https://nft-test.kingsome.cn/hero/home_meta/:net_id',
|
||||
'params': [
|
||||
[':net_id', '', '链id'],
|
||||
],
|
||||
'response': [
|
||||
_common.NftHomeMeta(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': '/gold_bullion/home_meta/:net_id',
|
||||
'desc': '获取金砖nft元信息主页',
|
||||
'group': '!AANft',
|
||||
'url': 'https://nft-test.kingsome.cn/gold_bullion/home_meta/:net_id',
|
||||
'params': [
|
||||
[':net_id', '', '链id'],
|
||||
],
|
||||
'response': [
|
||||
_common.NftHomeMeta(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': '/hero/meta/:net_id/:token_id',
|
||||
'desc': '获取英雄nft元信息',
|
||||
'group': '!AANft',
|
||||
'url': 'https://nft-test.kingsome.cn/hero/meta/:net_id/:token_id',
|
||||
'params': [
|
||||
[':net_id', '', '链id'],
|
||||
[':token_id', '', 'tokenId'],
|
||||
],
|
||||
'response': [
|
||||
_common.NftHeroMeta(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': '/gold_bullion/meta/:net_id/:token_id',
|
||||
'desc': '获取金砖nft元信息',
|
||||
'group': '!AANft',
|
||||
'url': 'https://nft-test.kingsome.cn/gold_bullion/meta/:net_id/:token_id',
|
||||
'params': [
|
||||
[':net_id', '', '链id'],
|
||||
[':token_id', '', 'tokenId'],
|
||||
],
|
||||
'response': [
|
||||
_common.NftHeroMeta(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': '/hero/detail/:net_id/:token_id',
|
||||
'desc': '获取英雄nft详细信息',
|
||||
'group': '!AANft',
|
||||
'url': 'https://nft-test.kingsome.cn/hero/detail/:net_id/:token_id',
|
||||
'params': [
|
||||
[':net_id', '', '链id'],
|
||||
[':token_id', '', 'tokenId'],
|
||||
],
|
||||
'response': [
|
||||
_common.NftInfo(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': '/gold_bullion/detail/:net_id/:token_id',
|
||||
'desc': '获取金砖nft详细信息',
|
||||
'group': '!AANft',
|
||||
'url': 'https://nft-test.kingsome.cn/gold_bullion/detail/:net_id/:token_id',
|
||||
'params': [
|
||||
[':net_id', '', '链id'],
|
||||
[':token_id', '', 'tokenId'],
|
||||
],
|
||||
'response': [
|
||||
_common.NftInfo(),
|
||||
]
|
||||
}
|
||||
]
|
@ -1,21 +0,0 @@
|
||||
import _common
|
||||
|
||||
class AAStat(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'updateSession',
|
||||
'desc': '短链接游戏心跳更新',
|
||||
'group': '!AAStat',
|
||||
'url': 'https://stat-test.kingsome.cn/webapp/index.php?c=Stat&a=updateSession',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['account_id', '', '账号id'],
|
||||
['session_id', '', '会话id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
]
|
130
doc/AAWheel.py
130
doc/AAWheel.py
@ -1,130 +0,0 @@
|
||||
import _common
|
||||
|
||||
class AAWheel(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'method': 'POST',
|
||||
'name': '/api/v1/user/login',
|
||||
'desc': '登录',
|
||||
'group': '!AAActivity',
|
||||
'url': 'https://wheel-test.kingsome.cn/api/v1/user/login',
|
||||
'headers': _common.MaybeJwtHeader,
|
||||
'is_json_params': True,
|
||||
'request_params': [
|
||||
],
|
||||
'params': [
|
||||
['token', '', 'token'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['info', _common.WheelUser(), '用户名'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'POST',
|
||||
'name': '/api/v1/roll_dice',
|
||||
'desc': '掷骰子',
|
||||
'group': '!AAActivity',
|
||||
'url': 'https://wheel-test.kingsome.cn/api/v1/roll_dice',
|
||||
'headers': _common.JwtHeader,
|
||||
'is_json_params': True,
|
||||
'params': [
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'GET',
|
||||
'name': '/api/v1/friend/list',
|
||||
'desc': '好友列表',
|
||||
'group': '!AAActivity',
|
||||
'url': 'https://wheel-test.kingsome.cn/api/v1/friend/list',
|
||||
'headers': _common.JwtHeader,
|
||||
'params': [
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'GET',
|
||||
'name': '/api/v1/friend/invite',
|
||||
'desc': '好友邀请',
|
||||
'group': '!AAActivity',
|
||||
'url': 'https://wheel-test.kingsome.cn/api/v1/friend/invite',
|
||||
'headers': _common.JwtHeader,
|
||||
'params': [
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'GET',
|
||||
'name': '/api/v1/friend/agree',
|
||||
'desc': '好友邀请',
|
||||
'group': '!AAActivity',
|
||||
'url': 'https://wheel-test.kingsome.cn/api/v1/friend/agree',
|
||||
'headers': _common.JwtHeader,
|
||||
'params': [
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'GET',
|
||||
'name': '/api/v1/mission/list',
|
||||
'desc': '任务列表',
|
||||
'group': '!AAActivity',
|
||||
'url': 'https://wheel-test.kingsome.cn/api/v1/mission/list',
|
||||
'headers': _common.JwtHeader,
|
||||
'params': [
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'GET',
|
||||
'name': '/api/v1/chip/list',
|
||||
'desc': '芯片列表',
|
||||
'group': '!AAActivity',
|
||||
'url': 'https://wheel-test.kingsome.cn/api/v1/chip/list',
|
||||
'headers': _common.JwtHeader,
|
||||
'params': [
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'GET',
|
||||
'name': '/api/v1/item/list',
|
||||
'desc': '道具列表',
|
||||
'group': '!AAActivity',
|
||||
'url': 'https://wheel-test.kingsome.cn/api/v1/item/list',
|
||||
'headers': _common.JwtHeader,
|
||||
'params': [
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'GET',
|
||||
'name': '/api/v1/shop/goods',
|
||||
'desc': '商店-商品列表',
|
||||
'group': '!AAActivity',
|
||||
'url': 'https://wheel-test.kingsome.cn/api/v1/shop/goods',
|
||||
'headers': _common.JwtHeader,
|
||||
'params': [
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
]
|
@ -1,36 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class ActivationCode(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'bindActivationCode',
|
||||
'desc': '绑定激活码',
|
||||
'group': 'ActivationCode',
|
||||
'url': 'webapp/index.php?c=ActivationCode&a=bindActivationCode',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['code', 0, '激活码']
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},{
|
||||
'name': 'getActivationCodeBindState',
|
||||
'desc': '激活码绑定状态',
|
||||
'group': 'ActivationCode',
|
||||
'url': 'webapp/index.php?c=ActivationCode&a=getActivationCodeBindState',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['state', 0, '1:已激活 0:未激活']
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
|
@ -1,78 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class Activity(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'getInviteActivityInfo',
|
||||
'desc': '拉新活动信息',
|
||||
'group': 'Activity',
|
||||
'url': 'webapp/index.php?c=Activity&a=getInviteActivityInfo',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['invitation_code', 0, '邀请码'],
|
||||
['invite_count', 0, '成功邀请人数'],
|
||||
['bind_state', 0, '绑定状态 1:已绑 0:未绑'],
|
||||
['reward_state', 0, '奖励状态 1:已领取 0:未领取'],
|
||||
['!bind_rewards', [_common.AwardItem()], '绑定奖励'],
|
||||
]
|
||||
},{
|
||||
'name': 'bindInvitationCode',
|
||||
'desc': '绑定邀请码',
|
||||
'group': 'Activity',
|
||||
'url': 'webapp/index.php?c=Activity&a=bindInvitationCode',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['code', 0, '邀请码'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},{
|
||||
'name': 'getBindRewardS',
|
||||
'desc': '领取绑定奖励',
|
||||
'group': 'Activity',
|
||||
'surl': 'webapp/index.php?c=Activity&a=getBindRewardS',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['award', _common.Award(), '奖励信息'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},{
|
||||
'name': 'getInvitationTaskList',
|
||||
'desc': '拉新任务列表',
|
||||
'group': 'Activity',
|
||||
'url': 'webapp/index.php?c=Activity&a=getInvitationTaskList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!task_list',[_common.Mission()], '奖励信息'],
|
||||
]
|
||||
},{
|
||||
'name': 'commitInvitationTaskS',
|
||||
'desc': '提交任务(领取奖励)',
|
||||
'group': 'Activity',
|
||||
'surl': 'webapp/index.php?c=Activity&a=commitInvitationTaskS',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['mission_id', 0, '任务id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['award', _common.Award(), '奖励信息'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},
|
||||
]
|
||||
|
24
doc/Annc.py
24
doc/Annc.py
@ -1,24 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class Annc(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'getAnnc',
|
||||
'desc': '获取公告',
|
||||
'group': 'Annc',
|
||||
'url': 'webapp/index.php?c=Annc&a=getAnnc',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['id', '', 'id'],
|
||||
['tile', '', '标题'],
|
||||
['content', '', '正文'],
|
||||
]
|
||||
}
|
||||
]
|
100
doc/Auction.py
Normal file
100
doc/Auction.py
Normal file
@ -0,0 +1,100 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class Auction(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'search',
|
||||
'desc': '获取出售的商品列表',
|
||||
'group': 'Auction',
|
||||
'url': 'webapp/index.php?c=Auction&a=search',
|
||||
'params': [
|
||||
['account', 0, '钱包账号'],
|
||||
['page', 0, '获取第几页数据'],
|
||||
['sort', '', '排序字段'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!rows', [_common.NftDetail()], '商品信息'],
|
||||
['page', _common.Page(), '分页信息'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'productOnline',
|
||||
'desc': '上架商品',
|
||||
'group': 'Auction',
|
||||
'url': 'webapp/index.php?c=Auction&a=productOnline',
|
||||
'params': [
|
||||
['account', '', '钱包账号'],
|
||||
['token', '', 'token'],
|
||||
['net_id', '', '网络id'],
|
||||
['token_id', '', 'token_id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'productOffline',
|
||||
'desc': '上架商品',
|
||||
'group': 'Auction',
|
||||
'url': 'webapp/index.php?c=Auction&a=productOffline',
|
||||
'params': [
|
||||
['account', '', '钱包账号'],
|
||||
['token', '', 'token'],
|
||||
['net_id', '', '网络id'],
|
||||
['token_id', '', 'token_id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'buy',
|
||||
'desc': '购买商品',
|
||||
'group': 'Auction',
|
||||
'url': 'webapp/index.php?c=Auction&a=buy',
|
||||
'params': [
|
||||
['account', '', '钱包账号'],
|
||||
['token', '', 'token'],
|
||||
['net_id', '', '网络id'],
|
||||
['token_id', '', 'token_id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['order_id', '', '订单号(errcode = 0的时候,根据订单号客户端定时调用queryOrder接口)查询状态'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'queryOrder',
|
||||
'desc': '查询订单状态',
|
||||
'group': 'Auction',
|
||||
'url': 'webapp/index.php?c=Auction&a=queryOrder',
|
||||
'params': [
|
||||
['account', 0, '钱包账号'],
|
||||
['token', '', 'token'],
|
||||
['order_id', 0, '订单id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(errcode='当errcode!=0的时候客户端不需要再调用(停止定时器)'),
|
||||
['state', 0, '0:订单不存在 1:购买成功 2:交易处理中 3:交易失败'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'getProductList',
|
||||
'desc': '获取出售的商品列表',
|
||||
'group': 'Auction',
|
||||
'url': 'webapp/index.php?c=Auction&a=getProductList',
|
||||
'params': [
|
||||
['account', '', '钱包账号'],
|
||||
['token', '', 'token'],
|
||||
['net_id', '', '网络id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
]
|
@ -1,88 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class Avatar(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'avatarMetaList',
|
||||
'desc': 'item配置表中装饰列表',
|
||||
'group': 'Avatar',
|
||||
'url': 'webapp/index.php?c=Avatar&a=avatarMetaList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!list', [], '装饰列表(参数见item.xlsx字段)']
|
||||
]
|
||||
},{
|
||||
'name': 'avatarList',
|
||||
'desc': '获取装饰物品列表',
|
||||
'group': 'Avatar',
|
||||
'url': 'webapp/index.php?c=Avatar&a=avatarList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!list', [_common.AvatarInfo()], '装饰列表']
|
||||
]
|
||||
},{
|
||||
'name': 'equip',
|
||||
'desc': '穿戴装饰物品',
|
||||
'group': 'Avatar',
|
||||
'url': 'webapp/index.php?c=Avatar&a=equip',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['hero_uniid', '', '英雄唯一id'],
|
||||
['avatar_uniid', '', '装饰唯一id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},{
|
||||
'name': 'buyAvatarS',
|
||||
'desc': '购买装饰物品',
|
||||
'group': 'Avatar',
|
||||
'surl': 'webapp/index.php?c=Avatar&a=buyAvatarS',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['item_id', '', '装饰物品itemId'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},{
|
||||
'name': 'remove',
|
||||
'desc': '卸下装饰物品',
|
||||
'group': 'Avatar',
|
||||
'url': 'webapp/index.php?c=Avatar&a=remove',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['avatar_uniid', '', '装饰唯一id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},{
|
||||
'name': 'clearAvatar',
|
||||
'desc': '全部卸下',
|
||||
'group': 'Avatar',
|
||||
'url': 'webapp/index.php?c=Avatar&a=clearAvatar',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['hero_uniid', '', '英雄唯一id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},
|
||||
]
|
||||
|
||||
|
182
doc/Bag.py
182
doc/Bag.py
@ -1,112 +1,70 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class Bag(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'itemList',
|
||||
'desc': '获取背包物品列表',
|
||||
'group': 'Bag',
|
||||
'url': 'webapp/index.php?c=Bag&a=itemList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!item_list', [_common.Item()], '物品列表']
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'useItemS',
|
||||
'desc': '使用道具',
|
||||
'group': 'Bag',
|
||||
'surl': 'webapp/index.php?c=Bag&a=useItemS',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['item_id', 0, '道具唯一id'],
|
||||
['item_num', 0, '道具数量'],
|
||||
['param1', '', '参数1(当使用的是改名卡时param1=新的角色名)'],
|
||||
['param2', '', '参数2(当使用的是改名卡时param2=签名)'],
|
||||
['param3', '', '参数3'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['award', _common.Award(), '奖励信息'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},{
|
||||
'name': 'openBoxByBindGoldS',
|
||||
'desc': '绑币开宝箱',
|
||||
'group': 'Bag',
|
||||
'surl': 'webapp/index.php?c=Bag&a=openBoxByBindGoldS',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['item_id', 0, '道具唯一id'],
|
||||
['item_num', 0, '道具数量'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['award', _common.Award(), '奖励信息'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'rename',
|
||||
'desc': '改名(优先扣改名卡没有则扣钻石)',
|
||||
'group': 'Bag',
|
||||
'url': 'webapp/index.php?c=Bag&a=rename',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['name', '', '新的角色名'],
|
||||
['name_sign', '', '名字签名)'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'buyItemS',
|
||||
'desc': '购买道具(目前只一次购买改名卡)',
|
||||
'group': 'Bag',
|
||||
'surl': 'webapp/index.php?c=Bag&a=buyItemS',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['item_id', '', '道具id'],
|
||||
['item_num', '', '道具数量'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},{
|
||||
'name': 'syntheticGold',
|
||||
'desc': '金币合成',
|
||||
'group': 'Bag',
|
||||
'url': 'webapp/index.php?c=Bag&a=syntheticGold',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['item_id', '', '合成的道具id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},{
|
||||
'name': 'resolveGolds',
|
||||
'desc': '金砖拆解',
|
||||
'group': 'Bag',
|
||||
'url': 'webapp/index.php?c=Bag&a=resolveGolds',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['item_uniid', '', '道具uniid'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},
|
||||
]
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class Bag(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'itemList',
|
||||
'desc': '获取背包物品列表',
|
||||
'group': 'Bag',
|
||||
'url': 'webapp/index.php?c=Bag&a=itemList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!item_list', [_common.Item()], '物品列表']
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'useItem',
|
||||
'desc': '使用道具',
|
||||
'group': 'Bag',
|
||||
'url': 'webapp/index.php?c=Bag&a=useItem',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['item_uniid', 0, '道具唯一id'],
|
||||
['item_num', 0, '道具数量'],
|
||||
['param1', '', '参数1(当使用的是改名卡时param1=新的角色名)'],
|
||||
['param2', '', '参数2(当使用的是改名卡时param2=签名)'],
|
||||
['param3', '', '参数3'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['award', _common.Award(), '奖励信息'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'rename',
|
||||
'desc': '改名(优先扣改名卡没有则扣钻石)',
|
||||
'group': 'Bag',
|
||||
'url': 'webapp/index.php?c=Bag&a=rename',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['name', '', '新的角色名'],
|
||||
['name_sign', '', '名字签名)'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'buyItem',
|
||||
'desc': '购买道具(目前只一次购买改名卡)',
|
||||
'group': 'Bag',
|
||||
'url': 'webapp/index.php?c=Bag&a=buyItem',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['item_id', '', '道具id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},
|
||||
]
|
||||
|
114
doc/Battle.py
114
doc/Battle.py
@ -6,6 +6,50 @@ class Battle(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'method': 'POST',
|
||||
'name': 'preBattleCheck',
|
||||
'desc': '战前检查把CMJoin协议打包成json格式放到http body里参考gamelog处理方式(在发CMJoin之前发,如果errcode!=0则提示错误并且不再发CMJoin相当于进入失败)',
|
||||
'group': 'Battle',
|
||||
'url': 'webapp/index.php?c=Battle&a=preBattleCheck',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['pre_battle_payload', '', '透传给战斗的CMJoin.pre_battle_payload(该信息里携带了战斗服需要校验的信息,防止客户端伪造数据)']
|
||||
]
|
||||
},{
|
||||
'method': 'GET',
|
||||
'name': 'getBattleHistory',
|
||||
'desc': '历史战绩',
|
||||
'group': 'Battle',
|
||||
'url': 'webapp/index.php?c=Battle&a=getBattleHistory',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['room_mode', '', ' 0:pvp 1:pve'],
|
||||
['pvp_mode', '', ' 0:匹配 1:排位']
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!data', [_common.BattleHistory()], '战绩数据'],
|
||||
]
|
||||
},{
|
||||
'method': 'GET',
|
||||
'name': 'showBattleHistory',
|
||||
'desc': '战绩详情',
|
||||
'group': 'Battle',
|
||||
'url': 'webapp/index.php?c=Battle&a=showBattleHistory',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['battle_uuid', '', ' 战斗唯一id'],
|
||||
['room_uuid', '', ' 房间唯一id']
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['info', _common.BattleSettlement(), '战绩详情'],
|
||||
]
|
||||
},
|
||||
]
|
||||
self.internalApis = [
|
||||
{
|
||||
@ -58,11 +102,10 @@ class Battle(object):
|
||||
['rank_score', 0, '排位积分'],
|
||||
#['pass_score', 0, '通行证积分'],
|
||||
['items', 0, '道具id:道具数量|'],
|
||||
['!battle_items', [_common.BattleItem()], '战斗道具'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['reward', _common.BattleItemReward(), '武器2奖励'],
|
||||
['reward', _common.BattleReward(), '武器2奖励'],
|
||||
['rank_score', _common.BattleRankScore(), '排位分信息'],
|
||||
]
|
||||
},
|
||||
@ -78,27 +121,24 @@ class Battle(object):
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
_common.BattleData(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'POST',
|
||||
'desc': '获取战斗数据(客户端不用处理)getCustomBattleData',
|
||||
'group': 'Battle',
|
||||
'url': 'webapp/index.php?c=Battle&a=getCustomBattleData',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['account_id', '', 'account_id'],
|
||||
['session_id', '', 'session_id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['sign', '', '签名'],
|
||||
['zone_id', '', 'zone_id'],
|
||||
['node_id', '', 'node_id'],
|
||||
['start_time', '', 'start_time'],
|
||||
['room_uuid', '', '房间id'],
|
||||
['!team_list', [_common.BattleTeam()], '队伍数据'],
|
||||
['account_id','','account_id'],
|
||||
['session_id','','session_id'],
|
||||
['battle_uuid','','battle_uuid'],
|
||||
['match_mode',0,'0:匹配 1:排位 2:pve'],
|
||||
['name','','用户名字'],
|
||||
['level',0,'用户等级'],
|
||||
['revive_coin',0,'复活币'],
|
||||
['hero_uniid',0,'英雄 uniid'],
|
||||
['hero_id',0,'英雄 item id'],
|
||||
['weapon_uuid1',0,'武器1 uniid'],
|
||||
['weapon_uuid2',0,'武器2 uniid'],
|
||||
['parachute',0,'降落伞 item id'],
|
||||
['hero_skin',0,'英雄皮肤 item id'],
|
||||
['skill_id',0,'备战技能 item id'],
|
||||
['chip_page',_common.Attr(),'铭文页属性'],
|
||||
['hero_dto','','英雄详情'],
|
||||
['weapon_dto1','','武器1详情'],
|
||||
['weapon_dto2','','武器2详情'],
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -120,14 +160,12 @@ class Battle(object):
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['version', 0, '版本'],
|
||||
['is_newbie_battle', 0, '是否新手战'],
|
||||
['battle_uuid', '', 'battle_uuid'],
|
||||
['room_uuid', '', '房间唯一id'],
|
||||
['room_mode', 0, '0:pvp 1:pve 2:moba'],
|
||||
['map_mode', 0, ''],
|
||||
['room_mode', 0, '0:pvp 1:pve'],
|
||||
['team_id', 0, '队伍id'],
|
||||
['map_id', 0, '地图id'],
|
||||
['victory', 0, '是否胜利(pvp:吃鸡 pve:通关 moba:胜利)'],
|
||||
['victory', 0, '是否胜利(pvp::吃鸡 pve:通关)'],
|
||||
|
||||
['pvp_settelement_type', 0, 'pvp结算类型 0:个人 1:组队'],
|
||||
['pvp_settelement_color', 0, ''],
|
||||
@ -143,26 +181,8 @@ class Battle(object):
|
||||
['pve_wave', 0, 'pve波次'],
|
||||
['pve_max_wave', 0, 'pve最大波次'],
|
||||
|
||||
#['!members', _common.TeamReportMember(), '成员数据'],
|
||||
#['!team_list', _common.TeamReportTeam(), '所有队伍成员数据']
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'desc': '服务器战报-房间所有数据(客户端不用处理)roomReport',
|
||||
'group': 'Battle',
|
||||
'url': 'webapp/index.php?c=Battle&a=roomReport',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['version', 0, '版本'],
|
||||
['is_newbie_battle', 0, '是否新手战'],
|
||||
['room_uuid', '', '房间唯一id'],
|
||||
['room_mode', 0, '0:pvp 1:pve 2:moba'],
|
||||
['map_mode', 0, ''],
|
||||
['map_id', 0, '地图id'],
|
||||
#['!team_list', [_common.MFRoomReportTeam()], '所有队伍数据']
|
||||
['!members', _common.TeamReportMember(), '成员数据'],
|
||||
['!team_list', _common.TeamReportTeam(), '所有队伍成员数据']
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
|
@ -1,67 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class BattleData(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'method': 'POST',
|
||||
'name': 'preBattleCheck',
|
||||
'desc': '战前检查把CMJoin协议打包成json格式放到http body里参考gamelog处理方式(在发CMJoin之前发,如果errcode!=0则提示错误并且不再发CMJoin相当于进入失败)',
|
||||
'group': 'BattleData',
|
||||
'url': 'webapp/index.php?c=BattleDataData&a=preBattleCheck',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['pre_battle_payload', '', '透传给战斗的CMJoin.pre_battle_payload(该信息里携带了战斗服需要校验的信息,防止客户端伪造数据)']
|
||||
]
|
||||
},{
|
||||
'method': 'GET',
|
||||
'name': 'getBattleHistory',
|
||||
'desc': '历史战绩',
|
||||
'group': 'BattleData',
|
||||
'url': 'webapp/index.php?c=BattleDataData&a=getBattleHistory',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['room_mode', '', ' 0:pvp 1:pve'],
|
||||
['pvp_mode', '', ' 0:匹配 1:排位']
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!data', [_common.BattleHistory()], '战绩数据'],
|
||||
]
|
||||
},{
|
||||
'method': 'GET',
|
||||
'name': 'showBattleHistory',
|
||||
'desc': '战绩详情',
|
||||
'group': 'BattleData',
|
||||
'url': 'webapp/index.php?c=BattleDataData&a=showBattleHistory',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['battle_uuid', '', ' 战斗唯一id'],
|
||||
['room_uuid', '', ' 房间唯一id']
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['info', _common.BattleSettlement(), '战绩详情'],
|
||||
]
|
||||
},{
|
||||
'method': 'GET',
|
||||
'name': 'personalReport',
|
||||
'desc': '个人战绩',
|
||||
'group': 'BattleData',
|
||||
'url': 'webapp/index.php?c=BattleDataData&a=personalReport',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['room_mode', '', ' 房间模式']
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['items', [], '战斗奖励'],
|
||||
]
|
||||
},
|
||||
]
|
@ -1,92 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class BattleHistory(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'getBattleList',
|
||||
'desc': '历史战绩',
|
||||
'group': 'BattleHistory',
|
||||
'url': 'webapp/index.php?c=BattleHistory&a=getBattleList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['target_id', '', ' 用户 account'],
|
||||
['type', '', ' 1:pvp 2:moba 3:巡回模式'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!data', [BattleSettlementInfo()], '战绩数据'],
|
||||
]
|
||||
},{
|
||||
'method': 'GET',
|
||||
'name': 'showBattleHistory',
|
||||
'desc': '战绩详情',
|
||||
'group': 'BattleHistory',
|
||||
'url': 'webapp/index.php?c=BattleHistory&a=showBattleHistory',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['target_id', '', ' target_id'],
|
||||
['battle_uuid', '', ' 战斗唯一id'],
|
||||
['room_uuid', '', ' 房间唯一id']
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!info', [_common.BattleSettlement()], '战绩详情'],
|
||||
]
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
|
||||
|
||||
class BattleSettlementInfo(object):
|
||||
|
||||
def __init__(self):
|
||||
self.fields = [
|
||||
['map_mode_id', 0, '模式id'],
|
||||
['room_mode', 0, ' 0:pvp 2:moba'],
|
||||
['pvp_mode', 0, ' 0:匹配 1:排位'],
|
||||
['team_mode', 0, ' 1:单人 2:多人'],
|
||||
['pvp_team_kills', 0, '队伍击杀'],
|
||||
['pvp_team_rank', 0, '队伍排名'],
|
||||
['game_time', 0, '游戏结束时间'],
|
||||
['dead_times', 0, '死亡次数'],
|
||||
['account_id', 0, '账号id(真人才有account_id)'],
|
||||
['name', '', '玩家名字'],
|
||||
['head', 0, '头像id'],
|
||||
['head_frame', 0, '头像框'],
|
||||
['sex', 0, '性别'],
|
||||
['hero_uniid', 0, '英雄uniid'],
|
||||
['hero_id', 0, '英雄itemId'],
|
||||
['dead', 0, '是否已死亡'],
|
||||
['dead_times', 0, '死亡次数'],
|
||||
['is_mvp', 0, '是否mvp'],
|
||||
['old_rank', 0, '老段位'],
|
||||
['new_rank', 0, '新段位'],
|
||||
['old_score', 0, '老段位积分'],
|
||||
['new_score', 0, '新段位积分'],
|
||||
['old_circuit_score', 0, '巡回赛老积分'],
|
||||
['new_circuit_score', 0, '巡回赛新积分'],
|
||||
['pvp_kill', 0, 'pvp击杀敌人数'],
|
||||
['pvp_damage', 0, 'pvp伤害总量'],
|
||||
['pvp_assist', 0, 'pvp助攻'],
|
||||
['pvp_survia_time', 0, 'pvp存活时间(毫秒)'],
|
||||
['pvp_recover', 0, 'pvp治疗总量'],
|
||||
['pvp_rescue', 0, 'pvp救援'],
|
||||
['pvp_personal_rank', 0, '个人排名'],
|
||||
['pve_order', 0, 'pve波次'],
|
||||
['pve_score', 0, 'pve分数'],
|
||||
['pve_star', 0, 'pve星'],
|
||||
['pve_damage', 0, 'pve伤害总量'],
|
||||
['pve_revive', 0, 'pve复活次数'],
|
||||
['pve_survia_time', 0, 'pvp存活时间(毫秒)'],
|
||||
['pve_wave', 0, 'pve波次'],
|
||||
['pve_max_wave', 0, 'pve总波次'],
|
||||
['pve_boss_killed', 0, 'pve副本boos是否被击杀'],
|
||||
['hero_lv', 0, '英雄等级'],
|
||||
['!reward', [_common.BattleItemReward()], 'reward'],
|
||||
]
|
||||
|
@ -1,111 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class Pass(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'getPassList',
|
||||
'desc': '成长任务列表',
|
||||
'group': 'Pass',
|
||||
'url': 'webapp/index.php?c=Pass&a=getPassList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!time_info', [TimeInfo()], '赛季时间'],
|
||||
['!reward_info', [Reward()], '任务列表'],
|
||||
#['pass_buy_state', 0, '通行证购买状态 1:购买中'],
|
||||
['pass_price', 0, '通行证价格'],
|
||||
#['lv_buy_state', 0, '通行证经验购买状态 1:购买中'],
|
||||
['lv_price', 0, '通行证经验价格(exp/price)'],
|
||||
]
|
||||
},{
|
||||
'name': 'commit',
|
||||
'desc': '领取任务',
|
||||
'group': 'Pass',
|
||||
'url': 'webapp/index.php?c=Pass&a=commit',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['level', 0, '等级'],
|
||||
['type', 0, '0:普通奖励 1:白金奖励'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['award', _common.Award(), '奖励信息'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},{
|
||||
'name': 'commitAll',
|
||||
'desc': '全部领取',
|
||||
'group': 'Pass',
|
||||
'url': 'webapp/index.php?c=Pass&a=commitAll',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['award', _common.Award(), '奖励信息'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},{
|
||||
'name': 'buyPlatinumPass',
|
||||
'desc': '购买通行证',
|
||||
'group': 'Pass',
|
||||
'url': 'webapp/index.php?c=Pass&a=buyPlatinumPass',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
#['price', 0, '价格'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
#['trans_id', 0, '订单号'],
|
||||
#['params', 0, 'params'],
|
||||
]
|
||||
},{
|
||||
'name': 'buyLevel',
|
||||
'desc': '购买通行证经验',
|
||||
'group': 'Pass',
|
||||
'url': 'webapp/index.php?c=Pass&a=buyLevel',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['level', 0, '等级'],
|
||||
#['price', 0, '价格'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
#['trans_id', 0, '订单号'],
|
||||
#['params', 0, 'params'],
|
||||
]
|
||||
},
|
||||
|
||||
]
|
||||
|
||||
class Reward(object):
|
||||
|
||||
def __init__(self):
|
||||
self.fields = [
|
||||
['!basic', [RewardInfo()], '普通奖励'],
|
||||
['!platinum', [RewardInfo()], '白金奖励'],
|
||||
]
|
||||
|
||||
class RewardInfo(object):
|
||||
|
||||
def __init__(self):
|
||||
self.fields = [
|
||||
['level', 0, '等级'],
|
||||
['state', 0, '0:可领取奖励 1:已领取奖励 -1:(不可领取)'],
|
||||
]
|
||||
|
||||
class TimeInfo(object):
|
||||
|
||||
def __init__(self):
|
||||
self.fields = [
|
||||
['name', 0, '标题'],
|
||||
['sub_name', 0, '副标题'],
|
||||
['begin_time', 0, '开始时间'],
|
||||
['end_time', 0, '结束时间'],
|
||||
]
|
60
doc/BcShop.py
Normal file
60
doc/BcShop.py
Normal file
@ -0,0 +1,60 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class BcShop(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'search',
|
||||
'desc': '获取出售的商品列表',
|
||||
'group': 'BcShop',
|
||||
'url': 'webapp/index.php?c=BcShop&a=search',
|
||||
'params': [
|
||||
['account', 0, '钱包账号'],
|
||||
['page', 0, '获取第几页数据'],
|
||||
['sort', '', '排序字段'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!rows', [_common.PreSaleBox()], '商品信息'],
|
||||
['page', _common.Page(), '分页信息'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'buy',
|
||||
'desc': '购买',
|
||||
'group': 'BcShop',
|
||||
'url': 'webapp/index.php?c=BcShop&a=buy',
|
||||
'params': [
|
||||
['token', '', 'token'],
|
||||
['type', '', '注意是箱子id!!!(box_id)'],
|
||||
['buyer_address', '', '购买者账号id'],
|
||||
['price', '', 'price'],
|
||||
['payment_token_address', '', 'payment_token_address'],
|
||||
['nonce', '', 'nonce'],
|
||||
['signature', '', '签名soliditySha3(type, payment_token_address, price, nonce), 签名的replace客户端做处理'],
|
||||
['net_id', '', '网络id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['order_id', '', '订单号(errcode = 0的时候,根据订单号客户端定时调用queryOrder接口)查询状态'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'queryOrder',
|
||||
'desc': '查询订单状态',
|
||||
'group': 'BcShop',
|
||||
'url': 'webapp/index.php?c=BcShop&a=queryOrder',
|
||||
'params': [
|
||||
['account', 0, '钱包账号'],
|
||||
['token', '', 'token'],
|
||||
['order_id', 0, '订单id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(errcode='当errcode!=0的时候客户端不需要再调用(停止定时器)'),
|
||||
['state', 0, '0:订单不存在 1:购买成功 2:交易处理中 3:交易失败'],
|
||||
]
|
||||
},
|
||||
]
|
23
doc/BcUser.py
Normal file
23
doc/BcUser.py
Normal file
@ -0,0 +1,23 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class BcUser(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'info',
|
||||
'desc': '获取用户信息',
|
||||
'group': 'BcUser',
|
||||
'url': 'webapp/index.php?c=BcUser&a=login',
|
||||
'params': [
|
||||
['account', '', '钱包账号'],
|
||||
['token', '', 'token'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
_common.BcUserInfo(),
|
||||
]
|
||||
},
|
||||
]
|
@ -1,55 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class Bigwheel(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'info',
|
||||
'desc': '转盘信息',
|
||||
'group': 'Bigwheel',
|
||||
'url': 'webapp/index.php?c=Bigwheel&a=info',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['info', _common.BigwheelInfo(), '转盘信息'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'drawS',
|
||||
'desc': '抽奖',
|
||||
'group': 'Bigwheel',
|
||||
'url': 'webapp/index.php?c=Bigwheel&a=drawS',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['type', 0, '0:双勾选 1:第1档 2:第2档']
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['award', _common.Award(), '奖励信息'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
['info', _common.BigwheelInfo(), '转盘信息'],
|
||||
['!prizes', [_common.BigwheelGrid()], '奖品列表']
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'buyS',
|
||||
'desc': '购买',
|
||||
'group': 'Bigwheel',
|
||||
'url': 'webapp/index.php?c=Bigwheel&a=buyS',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['grid_id', 0, '格子id']
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['award', _common.Award(), '奖励信息'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
['info', _common.BigwheelInfo(), '转盘信息'],
|
||||
]
|
||||
}
|
||||
]
|
@ -7,7 +7,7 @@ class BlockChain(object):
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'getTransactionList((废弃))',
|
||||
'name': 'getTransactionList',
|
||||
'desc': '获取列交易列表',
|
||||
'group': 'BlockChain',
|
||||
'url': 'webapp/index.php?c=BlockChain&a=getTransactionList',
|
||||
@ -19,7 +19,7 @@ class BlockChain(object):
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'getTransactionInfo(废弃)',
|
||||
'name': 'getTransactionInfo',
|
||||
'desc': '查看链交易状态',
|
||||
'group': 'BlockChain',
|
||||
'url': 'webapp/index.php?c=BlockChain&a=getTransactionInfo',
|
||||
@ -32,7 +32,7 @@ class BlockChain(object):
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'reportResult((废弃))',
|
||||
'name': 'reportResult',
|
||||
'desc': '上报链调用结果',
|
||||
'group': 'BlockChain',
|
||||
'url': 'webapp/index.php?c=BlockChain&a=reportResult',
|
||||
@ -45,7 +45,7 @@ class BlockChain(object):
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'getJumpInfo((废弃))',
|
||||
'name': 'getJumpInfo',
|
||||
'desc': '获取跳转信息',
|
||||
'group': 'BlockChain',
|
||||
'url': 'webapp/index.php?c=BlockChain&a=getJumpInfo',
|
||||
@ -64,40 +64,8 @@ class BlockChain(object):
|
||||
'group': 'BlockChain',
|
||||
'url': 'webapp/index.php?c=BlockChain&a=active721Nft',
|
||||
'params': [
|
||||
['type', 0, '1:英雄 2:金砖'],
|
||||
['uniid', '', '唯一id'],
|
||||
['account_address', '', '钱包地址'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['trans_id', '', '事务id'],
|
||||
['trans_req', _common.MFTransactionRequest(), '调用合约参数'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'mintGoldBullion',
|
||||
'desc': 'mint金砖',
|
||||
'group': 'BlockChain',
|
||||
'url': 'webapp/index.php?c=BlockChain&a=mintGoldBullion',
|
||||
'params': [
|
||||
['type', 0, '1:1w金币 2:10w金币'],
|
||||
['account_address', '', '钱包地址'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['trans_id', '', '事务id'],
|
||||
['trans_req', _common.MFTransactionRequest(), '调用合约参数'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'buyDiamond(废弃)',
|
||||
'desc': '购买钻石',
|
||||
'group': 'BlockChain',
|
||||
'url': 'webapp/index.php?c=BlockChain&a=buyDiamond',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['token_type', '', "选用币种 目前只支持CEG USDC USDT"],
|
||||
['num', 0, '购买数量'],
|
||||
['type', 0, '1:英雄 2:枪械'],
|
||||
['uniid', 0, '唯一id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
@ -106,19 +74,97 @@ class BlockChain(object):
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'buyMallProduct(废弃)',
|
||||
'desc': '购买中心化market商品',
|
||||
'name': 'evolve721Nft',
|
||||
'desc': 'nft进阶(英雄,武器)',
|
||||
'group': 'BlockChain',
|
||||
'url': 'webapp/index.php?c=BlockChain&a=buyMallProduct',
|
||||
'url': 'webapp/index.php?c=BlockChain&a=evolve721Nft',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['goods_uuid', '', '商品唯一id'],
|
||||
['price', '', '出售价格'],
|
||||
['type', 0, '1:英雄 2:枪械'],
|
||||
['token_id1', 0, 'tokenid1'],
|
||||
['token_id2', 0, 'tokenid2'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['trans_id', '', '事务id'],
|
||||
['!params', [''], '合约参数列表'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'evolveChip',
|
||||
'desc': '芯片进阶',
|
||||
'group': 'BlockChain',
|
||||
'url': 'webapp/index.php?c=BlockChain&a=evolveChip',
|
||||
'params': [
|
||||
['token_id1', 0, 'tokenid1'],
|
||||
['token_ids', '', 'tokenids材料id(|分割)'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['trans_id', '', '事务id'],
|
||||
['!params', [''], '合约参数列表'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'mintShardBatchUser',
|
||||
'desc': '碎片生成',
|
||||
'group': 'BlockChain',
|
||||
'url': 'webapp/index.php?c=BlockChain&a=mintShardBatchUser',
|
||||
'params': [
|
||||
['item_uniid', 0, '道具唯一id'],
|
||||
['num', 0, '使用数量'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['trans_id', '', '事务id'],
|
||||
['!params', [''], '合约参数列表'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'shardMixByUser',
|
||||
'desc': '碎片合成',
|
||||
'group': 'BlockChain',
|
||||
'url': 'webapp/index.php?c=BlockChain&a=shardMixByUser',
|
||||
'params': [
|
||||
['item_id', '', '指定的英雄id或者武器id'],
|
||||
['token_ids', '', 'token_ids多个用|分割'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['trans_id', '', '事务id'],
|
||||
['!params', [''], '合约参数列表'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'pluginChipBatch',
|
||||
'desc': '批量装上芯片',
|
||||
'group': 'BlockChain',
|
||||
'url': 'webapp/index.php?c=BlockChain&a=pluginChipBatch',
|
||||
'params': [
|
||||
['type', 0, '1:英雄 2:枪械'],
|
||||
['token_id', '', 'token_id'],
|
||||
['chip_ids', '', '需要卸下的chip token_ids多个用|分割'],
|
||||
['slot_ids', '', '槽位0-3多个用|分割'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['trans_id', '', '事务id'],
|
||||
['!params', [''], '合约参数列表'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'unplugChip',
|
||||
'desc': '卸下芯片',
|
||||
'group': 'BlockChain',
|
||||
'url': 'webapp/index.php?c=BlockChain&a=unplugChip',
|
||||
'params': [
|
||||
['type', 0, '1:英雄 2:枪械'],
|
||||
['token_id', '', 'token_id'],
|
||||
['chip_ids', '', '需要卸下的chip token_ids多个用|分割'],
|
||||
['slot_ids', '', '槽位0-3多个用|分割'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['trans_id', '', '事务id'],
|
||||
['order_id', '', '订单id'],
|
||||
['!params', [''], '合约参数列表'],
|
||||
]
|
||||
}
|
||||
|
23
doc/Box.py
23
doc/Box.py
@ -1,23 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class Box(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'box',
|
||||
'desc': '请求宝箱掉落信息',
|
||||
'group': 'Box',
|
||||
'url': 'webapp/index.php?c=Box&a=requestReward',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['payload', '', '透传数据']
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!item_list', [_common.AwardItem()], '物品列表']
|
||||
]
|
||||
},
|
||||
]
|
166
doc/Chip.py
166
doc/Chip.py
@ -1,103 +1,63 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class Chip(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'chipList',
|
||||
'desc': '获取芯片列表',
|
||||
'group': 'Chip',
|
||||
'url': 'webapp/index.php?c=Chip&a=chipList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!data', [_common.Chip()], '芯片列表']
|
||||
]
|
||||
},{
|
||||
'name': 'chipDetails',
|
||||
'desc': '芯片详情',
|
||||
'group': 'Chip',
|
||||
'url': 'webapp/index.php?c=Chip&a=chipDetails',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['unique_id', '', 'unique_id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!data', [_common.Chip()], '芯片信息']
|
||||
]
|
||||
},{
|
||||
'name': 'upgradeAttrChange',
|
||||
'desc': '芯片升级属性变化',
|
||||
'group': 'Chip',
|
||||
'url': 'webapp/index.php?c=Chip&a=upgradeAttrChange',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['chip_uniid', '', '芯片唯一id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!data', [AttrChange()], '属性变化信息']
|
||||
]
|
||||
},{
|
||||
'name': 'upgradeQualityS',
|
||||
'desc': '芯片升阶',
|
||||
'group': 'Chip',
|
||||
'surl': 'webapp/index.php?c=Chip&a=upgradeQualityS',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['chip_uniid', '', '升阶芯片唯一id'],
|
||||
['consume_uniids', '', '材料芯片唯一id,用“|”隔开'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['status', 0, '0=失败 1=成功'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'synChipS',
|
||||
'desc': '芯片合成',
|
||||
'group': 'Chip',
|
||||
'surl': 'webapp/index.php?c=Chip&a=synChipS',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['item_id', '', '材料item_id'],
|
||||
['item_num', '', '材料item_num'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['award', _common.AwardItem(), '合成芯片奖励'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'resolveChip',
|
||||
'desc': '分解芯片',
|
||||
'group': 'Chip',
|
||||
'url': 'webapp/index.php?c=Chip&a=resolveChip',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['chip_uniids', '', '芯片uniid 多个用“|”隔开'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['award', _common.AwardItem(), '分解所得材料'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},
|
||||
]
|
||||
|
||||
class AttrChange(object):
|
||||
|
||||
def __init__(self):
|
||||
self.fields = [
|
||||
['attr_id', 0, '属性id'],
|
||||
['min_val', 0, '最小属性值'],
|
||||
['max_val', 0, '最大属性值'],
|
||||
]
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class Chip(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'chipList',
|
||||
'desc': '获取芯片列表',
|
||||
'group': 'Chip',
|
||||
'url': 'webapp/index.php?c=Chip&a=chipList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!data', [_common.Chip()], '芯片列表']
|
||||
]
|
||||
},{
|
||||
'name': 'chipDetails',
|
||||
'desc': '芯片详情',
|
||||
'group': 'Chip',
|
||||
'url': 'webapp/index.php?c=Chip&a=chipDetails',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['unique_id', '', 'unique_id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!data', [_common.Chip()], '芯片信息']
|
||||
]
|
||||
},{
|
||||
'name': 'upgradeLevelPreview',
|
||||
'desc': '芯片升级前置操作',
|
||||
'group': 'Chip',
|
||||
'url': 'webapp/index.php?c=Chip&a=upgradeLevelPreview',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['unique_id', '', 'unique_id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!data', [_common.ChipPro()], '芯片信息']
|
||||
]
|
||||
},{
|
||||
'name': 'upgradeLevel',
|
||||
'desc': '芯片升级',
|
||||
'group': 'Chip',
|
||||
'url': 'webapp/index.php?c=Chip&a=upgradeLevel',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['unique_id_main', '', '源芯片token id'],
|
||||
['unique_id_param', '', '材料芯片token id 例:参数1 参数2 参数3'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!data', [_common.Chip()], '芯片信息'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},
|
||||
]
|
||||
|
@ -7,31 +7,53 @@ class ChipPage(object):
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'showChipPage',
|
||||
'desc': '铭文信息',
|
||||
'name': 'chipPageList',
|
||||
'desc': '铭文页列表',
|
||||
'group': 'ChipPage',
|
||||
'url': 'webapp/index.php?c=ChipPage&a=showChipPage',
|
||||
'url': 'webapp/index.php?c=ChipPage&a=chipPageList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['hero_unnid', '', '英雄唯一id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!data', [_common.ChipPageList()], '页列表']
|
||||
]
|
||||
},{
|
||||
'name': 'showPageInfo',
|
||||
'desc': '铭文页信息',
|
||||
'group': 'ChipPage',
|
||||
'url': 'webapp/index.php?c=ChipPage&a=showPageInfo',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['page', '', '页id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!data', [_common.ChipPage()], '页信息']
|
||||
]
|
||||
},{
|
||||
'name': 'unlockSlot',
|
||||
'desc': '解锁卡槽',
|
||||
'name': 'addChipPage',
|
||||
'desc': '添加铭文页',
|
||||
'group': 'ChipPage',
|
||||
'url': 'webapp/index.php?c=ChipPage&a=unlockSlot',
|
||||
'url': 'webapp/index.php?c=ChipPage&a=addChipPage',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['hero_unnid', '', '英雄唯一id'],
|
||||
['slot_id', '', '卡槽id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['property_chg', _common.PropertyChg(), '信息变更']
|
||||
]
|
||||
},{
|
||||
'name': 'rename',
|
||||
'desc': '修改页名',
|
||||
'group': 'ChipPage',
|
||||
'url': 'webapp/index.php?c=ChipPage&a=rename',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['page', '', '页id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!data', [_common.ChipPage()], '页信息']
|
||||
]
|
||||
},{
|
||||
'name': 'useChip',
|
||||
@ -40,28 +62,40 @@ class ChipPage(object):
|
||||
'url': 'webapp/index.php?c=ChipPage&a=useChip',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['hero_unnid', '', '英雄唯一id'],
|
||||
['page', '', '页id'],
|
||||
['slot_id', '', '卡槽id'],
|
||||
['chip_unnid', '', '芯片唯一id'],
|
||||
['unique_id', '', '芯片idx'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!data', [_common.ChipPage()], '页信息']
|
||||
]
|
||||
},{
|
||||
'name': 'removeChip',
|
||||
'name': 'removeChipOne',
|
||||
'desc': '芯片移除',
|
||||
'group': 'ChipPage',
|
||||
'url': 'webapp/index.php?c=ChipPage&a=removeChip',
|
||||
'url': 'webapp/index.php?c=ChipPage&a=removeChipOne',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['hero_unnid', '', '英雄唯一id'],
|
||||
['page', '', '页id'],
|
||||
['slot_id', '', '卡槽id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!data', [_common.ChipPage()], '页信息'],
|
||||
['property_chg', _common.PropertyChg(), '信息变更']
|
||||
['!data', [_common.ChipPage()], '页信息']
|
||||
]
|
||||
},{
|
||||
'name': 'removeChipAll',
|
||||
'desc': '芯片移除(一键移除)',
|
||||
'group': 'ChipPage',
|
||||
'url': 'webapp/index.php?c=ChipPage&a=removeChipAll',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['page', '', '页id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!data', [_common.ChipPage()], '页信息']
|
||||
]
|
||||
},
|
||||
]
|
||||
|
@ -1,98 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class Circuit(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'getCurrentStage',
|
||||
'desc': '巡回赛当前阶段',
|
||||
'group': 'Circuit',
|
||||
'url': 'webapp/index.php?c=Circuit&a=getCurrentStage',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!info', [stageInfo()], '巡回赛当前阶段信息'],
|
||||
]
|
||||
},{
|
||||
'name': 'getCircuitRanking',
|
||||
'desc': '巡回赛排行',
|
||||
'group': 'Circuit',
|
||||
'url': 'webapp/index.php?c=Circuit&a=getCircuitRanking',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!rank_list', [rankingInfo()], '榜信息'],
|
||||
['my_rank', rankingInfo(), '个人榜信息'],
|
||||
]
|
||||
},{
|
||||
'name': 'getCircuitPhaseRanking',
|
||||
'desc': '巡回赛阶段排行',
|
||||
'group': 'Circuit',
|
||||
'url': 'webapp/index.php?c=Circuit&a=getCircuitPhaseRanking',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!rank_list', [rankingInfo()], '榜信息'],
|
||||
['my_rank', rankingInfo(), '个人榜信息'],
|
||||
]
|
||||
},{
|
||||
'name': 'CircuitTaskList',
|
||||
'desc': '巡回赛任务',
|
||||
'group': 'Circuit',
|
||||
'url': 'webapp/index.php?c=Circuit&a=CircuitTaskList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!list', [task()], '任务列表'],
|
||||
]
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
|
||||
|
||||
class stageInfo(object):
|
||||
|
||||
def __init__(self):
|
||||
self.fields = [
|
||||
['start_time', 0, '开始时间'],
|
||||
['end_time', 0, '结束时间'],
|
||||
['stage_cec_pool', 0, '当前阶段奖池'],
|
||||
['total_cec_pool', 0, '赛季总奖池'],
|
||||
]
|
||||
|
||||
class rankingInfo(object):
|
||||
|
||||
def __init__(self):
|
||||
self.fields = [
|
||||
['account_id', 0, 'account'],
|
||||
['name', 0, '名字'],
|
||||
['head_id', 0, '头像'],
|
||||
['head_frame', 0, '头像框'],
|
||||
['hero_id', 0, '英雄ItemId'],
|
||||
['skin_id', 0, '皮肤ItemId'],
|
||||
['ranking', 0, '排名'],
|
||||
['score', 0, '积分'],
|
||||
['score_boost', 0, '加成的积分'],
|
||||
['cec', 0, 'cec(个人榜信息才有)'],
|
||||
]
|
||||
|
||||
class task(object):
|
||||
|
||||
def __init__(self):
|
||||
self.fields = [
|
||||
['task_id', 0, '任务id'],
|
||||
['current', 0, '当前进度'],
|
||||
['target', 0, '目标进度'],
|
||||
]
|
@ -1,21 +0,0 @@
|
||||
|
||||
import _common
|
||||
|
||||
class Contribution(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'getMyContributionPoint',
|
||||
'desc': '我的贡献点',
|
||||
'group': 'Contribution',
|
||||
'url': 'webapp/index.php?c=Contribution&a=getMyContributionPoint',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['point', 0, '贡献点']
|
||||
]
|
||||
},
|
||||
]
|
37
doc/Currency.py
Normal file
37
doc/Currency.py
Normal file
@ -0,0 +1,37 @@
|
||||
|
||||
import _common
|
||||
|
||||
class Currency(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'addCurrency',
|
||||
'desc': '添加货币地址',
|
||||
'group': 'Currency',
|
||||
'url': 'webapp/index.php?c=Currency&a=addCurrency',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['net_id', 0, '链id'],
|
||||
['address', '', '货币地址'],
|
||||
['symbol', '', '符号'],
|
||||
['precision', 0, '精度'],
|
||||
['type', 0, '1:ERC721 2:ERC1155 3:ERC20'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},{
|
||||
'name': 'currencyList',
|
||||
'desc': '列表',
|
||||
'group': 'Currency',
|
||||
'url': 'webapp/index.php?c=Currency&a=currencyList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!list', [_common.Currency()], '列表信息'],
|
||||
]
|
||||
},
|
||||
]
|
@ -1,52 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class DailySelection(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'info',
|
||||
'desc': '获取每日精选列表',
|
||||
'group': 'DailySelection',
|
||||
'url': 'webapp/index.php?c=DailySelection&a=info',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['refresh_count', 0, '刷新次数'],
|
||||
['refresh_total_count', 0, '可刷新总数)'],
|
||||
['cost', 0, '每日精选的当前刷新价格,-1表示不可刷新'],
|
||||
['!goods_list', [_common.DailySelectionGoods()], '每日精选列表'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'refresh',
|
||||
'desc': '刷新每日精选',
|
||||
'group': 'DailySelection',
|
||||
'url': 'webapp/index.php?c=DailySelection&a=refresh',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['cost', 0, '每日精选的当前刷新价格'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'buy',
|
||||
'desc': '购买每日精选商品',
|
||||
'group': 'DailySelection',
|
||||
'url': 'webapp/index.php?c=DailySelection&a=buy',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['grid', 0, '商品在每日精选中的位置索引'],
|
||||
['token_type', '', "选用币种,只能选择一种"],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
}
|
||||
]
|
98
doc/Emoji.py
98
doc/Emoji.py
@ -1,55 +1,45 @@
|
||||
import _common
|
||||
|
||||
class Emoji(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'getEmojiList',
|
||||
'desc': '表情列表',
|
||||
'group': 'Emoji',
|
||||
'url': 'webapp/index.php?c=Emoji&a=getEmojiList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!data', [_common.Emoji()], '表情列表'],
|
||||
['!use_emoji', [UsedEmoji()], '已选择的表情列表'],
|
||||
]
|
||||
},{
|
||||
'name': 'setEmoji',
|
||||
'desc': '设置表情',
|
||||
'group': 'Emoji',
|
||||
'url': 'webapp/index.php?c=Emoji&a=setEmoji',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['item_id', '0', '表情itemid'],
|
||||
['slot_id', '0', '卡槽id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},{
|
||||
'name': 'cancel',
|
||||
'desc': '取消设置',
|
||||
'group': 'Emoji',
|
||||
'url': 'webapp/index.php?c=Emoji&a=cancel',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['slot_id', '0', '卡槽id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
class UsedEmoji(object):
|
||||
|
||||
def __init__(self):
|
||||
self.fields = [
|
||||
['item_id', 0, '表情itemid 0:未选择'],
|
||||
['slot_id', 0, '卡槽id'],
|
||||
import _common
|
||||
|
||||
class Emoji(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'getEmojiList',
|
||||
'desc': '表情列表',
|
||||
'group': 'Emoji',
|
||||
'url': 'webapp/index.php?c=Emoji&a=getEmojiList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!data', [_common.Emoji()], '表情列表'],
|
||||
['use_emoji', [], '已选择的表情列表'],
|
||||
]
|
||||
},{
|
||||
'name': 'setEmoji',
|
||||
'desc': '设置表情',
|
||||
'group': 'Emoji',
|
||||
'url': 'webapp/index.php?c=Emoji&a=setEmoji',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['item_id', '0', 'item_id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},{
|
||||
'name': 'cancel',
|
||||
'desc': '取消设置',
|
||||
'group': 'Emoji',
|
||||
'url': 'webapp/index.php?c=Emoji&a=cancel',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['item_id', '0', 'item_id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
]
|
@ -1,41 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class FirstTopup(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'info',
|
||||
'desc': '首充信息',
|
||||
'group': 'FirstTopup',
|
||||
'url': 'webapp/index.php?c=FirstTopup&a=info',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['complete', 0, '是否已经完成首充 0-未完成 1-已完成'],
|
||||
['!firstTopupList', [_common.Reward()], '奖励信息'],
|
||||
['!status', [0], '领取状态 0-未领取 1-可领取 2-已领取'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'get',
|
||||
'desc': '获取首充奖励',
|
||||
'group': 'FirstTopup',
|
||||
'url': 'webapp/index.php?c=FirstTopup&a=get',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['group', 0, '奖励组id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['group', 0, '奖励组id'],
|
||||
['!status', [0], '领取状态 0-未领取 1-可领取 2-已领取'],
|
||||
['award', _common.Award(), '奖励信息'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},
|
||||
]
|
106
doc/Fragment.py
106
doc/Fragment.py
@ -1,40 +1,68 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class Fragment(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'showBaseByItemId',
|
||||
'desc': '查看item的基本信息',
|
||||
'group': 'Fragment',
|
||||
'url': 'webapp/index.php?c=Fragment&a=showBaseByItemId',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['item_id', '', '英雄或枪械的道具id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['data', [], '英雄或枪械的基本信息']
|
||||
]
|
||||
},{
|
||||
'name': 'synHero',
|
||||
'desc': '英雄合成',
|
||||
'group': 'Fragment',
|
||||
'url': 'webapp/index.php?c=Fragment&a=synHero',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['item_id', '', 'item_id'],
|
||||
['item_num', '', 'item_num'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['item_id', 0, '英雄item_id'],
|
||||
['status', 0, '1:成功 0:失败'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},
|
||||
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class Fragment(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'fragmentList',
|
||||
'desc': '获取碎片列表',
|
||||
'group': 'Fragment',
|
||||
'url': 'webapp/index.php?c=Fragment&a=fragmentList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['type', '', '碎片类型:1 英雄;2 枪械'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!data', [_common.Fragment()], '芯片列表']
|
||||
]
|
||||
},{
|
||||
'name': 'syntheticFragmentPreview',
|
||||
'desc': '碎片合成前',
|
||||
'group': 'Fragment',
|
||||
'url': 'webapp/index.php?c=Fragment&a=syntheticFragmentPreview',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['type', '', '类型:1 英雄;2 枪械'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!list', [], '英雄或枪械id列表'],
|
||||
['mint', 0, '费用']
|
||||
]
|
||||
},{
|
||||
'name': 'syntheticFragment',
|
||||
'desc': '碎片合成',
|
||||
'group': 'Fragment',
|
||||
'url': 'webapp/index.php?c=Fragment&a=syntheticFragment',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['type', '', '类型:1 英雄;2 枪械'],
|
||||
['params', '', '普通碎片 item id,用“|”分开;例:item id1|item id2|item id3...'],
|
||||
['param', '', '特殊碎片 item id'],
|
||||
['item_id', '', '英雄或枪械 item id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
['item_id', 0, '道具id']
|
||||
]
|
||||
},{
|
||||
'name': 'showBaseByItemId',
|
||||
'desc': '查看item的基本信息',
|
||||
'group': 'Fragment',
|
||||
'url': 'webapp/index.php?c=Fragment&a=showBaseByItemId',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['item_id', '', '英雄或枪械的道具id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['data', [], '英雄或枪械的基本信息']
|
||||
]
|
||||
},
|
||||
|
||||
]
|
75
doc/Friend.py
Normal file
75
doc/Friend.py
Normal file
@ -0,0 +1,75 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class Friend(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis_ = [
|
||||
{
|
||||
'desc': 'selectUserInfo',
|
||||
'group': 'Friend',
|
||||
'url': 'webapp/index.php?c=Friend&a=selectUserInfo',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'desc': 'selectUser',
|
||||
'group': 'Friend',
|
||||
'url': 'webapp/index.php?c=Friend&a=selectUser',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'desc': 'selectUserByName',
|
||||
'group': 'Friend',
|
||||
'url': 'webapp/index.php?c=Friend&a=selectUserByName',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'desc': 'createRoleInfo',
|
||||
'group': 'Friend',
|
||||
'url': 'webapp/index.php?c=Friend&a=createRoleInfo',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'desc': 'changeRoleInfo',
|
||||
'group': 'Friend',
|
||||
'url': 'webapp/index.php?c=Friend&a=changeRoleInfo',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'desc': 'selRepeatName',
|
||||
'group': 'Friend',
|
||||
'url': 'webapp/index.php?c=Friend&a=selRepeatName',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
]
|
110
doc/Gun.py
Normal file
110
doc/Gun.py
Normal file
@ -0,0 +1,110 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class Gun(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'skinList',
|
||||
'desc': '获取枪械皮肤列表',
|
||||
'group': 'Gun',
|
||||
'url': 'webapp/index.php?c=Gun&a=skinList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!skin_list', [_common.GunSkin()], '枪械皮肤列表']
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'talentList',
|
||||
'desc': '获取枪械天赋列表',
|
||||
'group': 'Gun',
|
||||
'url': 'webapp/index.php?c=Gun&a=talentList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!talent_list', [_common.GunTalent()], '枪械天赋列表']
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'upgradeTalentLv',
|
||||
'desc': '升级枪械天赋等级',
|
||||
'group': 'Gun',
|
||||
'url': 'webapp/index.php?c=Gun&a=upgradeTalentLv',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['talent_id', 0, '天赋id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'gunList',
|
||||
'desc': '获取枪械列表',
|
||||
'group': 'Gun',
|
||||
'url': 'webapp/index.php?c=Gun&a=gunList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!gun_list', [_common.Gun()], '枪械列表']
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
'name': 'upgradeLevelPreview',
|
||||
'desc': '升等级',
|
||||
'group': 'Gun',
|
||||
'url': 'webapp/index.php?c=Gun&a=upgradeLevelPreview',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['gun_uniid', 0, '枪械唯一id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['old_gun', _common.Gun(), '枪械-老'],
|
||||
['new_gun', _common.Gun(), '枪械-新'],
|
||||
['!cost', [_common.AwardItem()], '所需费用'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'gunDetails',
|
||||
'desc': '武器详情',
|
||||
'group': 'Gun',
|
||||
'url': 'webapp/index.php?c=Gun&a=gunDetails',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['unique_id', 0, '枪械唯一id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!data', [_common.Gun()], '枪械信息']
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'upgradeLv',
|
||||
'desc': '升等级',
|
||||
'group': 'Gun',
|
||||
'url': 'webapp/index.php?c=Gun&a=upgradeLv',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['gun_uniid', 0, '枪械唯一id'],
|
||||
['cost_gun_uniid', 0, '材料武器id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
['old_gun', _common.Gun(), '枪械-老'],
|
||||
['new_gun', _common.Gun(), '枪械-新'],
|
||||
]
|
||||
},
|
||||
]
|
@ -1,78 +0,0 @@
|
||||
import _common
|
||||
|
||||
class HashRate(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'taskList',
|
||||
'desc': '获取算力信息',
|
||||
'group': 'HashRate',
|
||||
'url': 'webapp/index.php?c=HashRate&a=taskList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['type', 0, '1:战斗任务 2:英雄任务 3:行为任务 4:充值消费任务'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!task_list1', [HashRateList()], '任务列表1'],
|
||||
['!task_list2', [HashRateList()], '任务列表2'],
|
||||
['obtain_start_time', 0, '获得期开始时间'],
|
||||
['obtain_end_time', 0, '获得期结束时间'],
|
||||
['income_start_time', 0, '盈利期开始时间'],
|
||||
['income_end_time', 0, '盈利期结束时间'],
|
||||
['state', 0, '0:未开始 1:获得期 2:盈利期'],
|
||||
['myHashRate', 0, '我的算力'],
|
||||
['goldRate', 0, '金币加成'],
|
||||
['refresh_times', 0, '今日刷新次数'],
|
||||
]
|
||||
},{
|
||||
'name': 'commitTaskS',
|
||||
'desc': '获取算力信息',
|
||||
'group': 'HashRate',
|
||||
'surl': 'webapp/index.php?c=HashRate&a=commitTaskS',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['task_id', 0, '任务id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!award', [_common.AwardItem()], '奖励'],
|
||||
]
|
||||
},{
|
||||
'name': 'refreshTask',
|
||||
'desc': '刷新任务行为',
|
||||
'group': 'HashRate',
|
||||
'url': 'webapp/index.php?c=HashRate&a=refreshTask',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['task_id', 0, '任务id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},{
|
||||
'name': 'redTips',
|
||||
'desc': '红点提示',
|
||||
'group': 'HashRate',
|
||||
'url': 'webapp/index.php?c=HashRate&a=redTips',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!tips', [], '任务类型'],
|
||||
]
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
class HashRateList(object):
|
||||
|
||||
def __init__(self):
|
||||
self.fields = [
|
||||
['task_id', 0, '任务id'],
|
||||
['current', 0, '当前进度'],
|
||||
['target', 0, '目标进度'],
|
||||
['state', 0, '2:完成(已领取) 1:完成(未领取) 0:未完成'],
|
||||
]
|
@ -1,39 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class HashRateShop(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'getGoodsList',
|
||||
'desc': '获取商品列表',
|
||||
'group': 'HashRateShop',
|
||||
'url': 'webapp/index.php?c=HashRateShop&a=getGoodsList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!goods_list', [_common.HashRateGoods()], '商品列表'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'buyGoodsS',
|
||||
'desc': '购买商品',
|
||||
'group': 'HashRateShop',
|
||||
'surl': 'webapp/index.php?c=HashRateShop&a=buyGoodsS',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['goods_id', '', '商品唯一id'],
|
||||
['goods_num', '', '商品数量'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['goods_info', _common.HashRateGoods(), '商品信息(客户端刷新用)'],
|
||||
['award', _common.Award(), '奖励信息'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
}
|
||||
]
|
105
doc/Hero.py
105
doc/Hero.py
@ -19,6 +19,50 @@ class Hero(object):
|
||||
['!hero_list', [_common.Hero()], '英雄列表']
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'skinList',
|
||||
'desc': '获取英雄皮肤列表',
|
||||
'group': 'Hero',
|
||||
'url': 'webapp/index.php?c=Hero&a=skinList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['hero_id', 0, '英雄itemId'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!skin_list', [_common.HeroSkin()], '英雄皮肤列表']
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'takeonSkin',
|
||||
'desc': '穿戴皮肤',
|
||||
'group': 'Hero',
|
||||
'url': 'webapp/index.php?c=Hero&a=takonSkin',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['hero_uniid', 0, '英雄唯一id'],
|
||||
['skin_id', 0, '皮肤id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'upgradeLevelPreview',
|
||||
'desc': '升等级',
|
||||
'group': 'Hero',
|
||||
'url': 'webapp/index.php?c=Hero&a=upgradeLevelPreview',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['hero_uniid', 0, '英雄唯一id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['old_hero', _common.Hero(), '英雄-老'],
|
||||
['new_hero', _common.Hero(), '英雄-新'],
|
||||
['cost', _common.Cost(), '所需费用'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'heroDetails',
|
||||
'desc': '英雄详情',
|
||||
@ -33,17 +77,21 @@ class Hero(object):
|
||||
['!data', [_common.Hero()], '英雄信息']
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'setHeroSkill',
|
||||
'desc': '设置通用技能',
|
||||
{
|
||||
'name': 'upgradeLv',
|
||||
'desc': '升级',
|
||||
'group': 'Hero',
|
||||
'url': 'webapp/index.php?c=Hero&a=setHeroSkill',
|
||||
'url': 'webapp/index.php?c=Hero&a=upgradeLv',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['skill_id', 0, '技能id'],
|
||||
['hero_uniid', 0, '英雄唯一id'],
|
||||
['cost_hero_uniid', 0, '材料英雄id(非必选参数--4|9|14等级必选)'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
['old_hero', _common.Hero(), '英雄-老'],
|
||||
['new_hero', _common.Hero(), '英雄-新'],
|
||||
]
|
||||
},{
|
||||
'name': 'presetHero',
|
||||
@ -74,53 +122,6 @@ class Hero(object):
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},{
|
||||
'name': 'upgradeQualityS',
|
||||
'desc': '英雄升阶',
|
||||
'group': 'Hero',
|
||||
'surl': 'webapp/index.php?c=Hero&a=upgradeQualityS',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['hero_uniid', 0, '英雄唯一id'],
|
||||
['item_id', 0, '碎片item_id'],
|
||||
['item_num', 0, '碎片数量'],
|
||||
['extra_item', 0, '附加道具(选填)'],
|
||||
['extra_num', 0, '附加道具数量(选填)'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['status', 0, '1:成功 0:失败'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'unSealHero',
|
||||
'desc': '英雄解封',
|
||||
'group': 'Hero',
|
||||
'url': 'webapp/index.php?c=Hero&a=unSealHero',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['hero_uniid', 0, '英雄唯一id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},{
|
||||
'name': 'synHeroS',
|
||||
'desc': '英雄合成',
|
||||
'group': 'Hero',
|
||||
'surl': 'webapp/index.php?c=Hero&a=synHeroS',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['item_id', 0, '碎片item_id'],
|
||||
['item_num', 0, '碎片数量'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['item_id', 0, '英雄item_id'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},
|
||||
|
||||
]
|
||||
|
101
doc/HeroSkin.py
101
doc/HeroSkin.py
@ -1,101 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class HeroSkin(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'skinAll',
|
||||
'desc': '所有皮肤列表',
|
||||
'group': 'HeroSkin',
|
||||
'url': 'webapp/index.php?c=HeroSkin&a=skinAll',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!skin_list', [_common.HeroSkin()], '英雄皮肤列表']
|
||||
]
|
||||
},{
|
||||
'name': 'skinList',
|
||||
'desc': '皮肤列表',
|
||||
'group': 'HeroSkin',
|
||||
'url': 'webapp/index.php?c=HeroSkin&a=skinList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['skin_id', 0, '皮肤itemId'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!skin_list', [_common.HeroSkin()], '英雄皮肤列表']
|
||||
]
|
||||
},{
|
||||
'name': 'skinDetails',
|
||||
'desc': '皮肤详情',
|
||||
'group': 'HeroSkin',
|
||||
'url': 'webapp/index.php?c=HeroSkin&a=skinDetails',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['skin_uniid', 0, '皮肤uniid'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['data', _common.HeroSkin(), '皮肤详情']
|
||||
]
|
||||
},{
|
||||
'name': 'mallSkinDetails',
|
||||
'desc': '皮肤详情',
|
||||
'group': 'HeroSkin',
|
||||
'url': 'webapp/index.php?c=HeroSkin&a=mallSkinDetails',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['skin_uniid', 0, '皮肤uniid'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['data', _common.HeroSkin(), '皮肤详情']
|
||||
]
|
||||
},{
|
||||
'name': 'takeonSkinS',
|
||||
'desc': '皮肤穿戴',
|
||||
'group': 'HeroSkin',
|
||||
'surl': 'webapp/index.php?c=HeroSkin&a=takeonSkinS',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['hero_uniid', 0, '英雄uniid'],
|
||||
['skin_uniid', 0, '皮肤uniid'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},{
|
||||
'name': 'demountSkinS',
|
||||
'desc': '皮肤卸下',
|
||||
'group': 'HeroSkin',
|
||||
'surl': 'webapp/index.php?c=HeroSkin&a=demountSkinS',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['hero_uniid', 0, '英雄uniid'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},{
|
||||
'name': 'synSkinS',
|
||||
'desc': '皮肤合成',
|
||||
'group': 'HeroSkin',
|
||||
'surl': 'webapp/index.php?c=HeroSkin&a=synSkinS',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['item_id', 0, '材料itemId'],
|
||||
['item_num', 0, '材料itemNum'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['item_id', 0, '皮肤itemId'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},
|
||||
]
|
23
doc/IM.py
Normal file
23
doc/IM.py
Normal file
@ -0,0 +1,23 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class IM(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'userInfo',
|
||||
'desc': '执行gm指令(格式:".指令 参数1 参数2 ...", 查看指令帮助".help")',
|
||||
'group': 'IM',
|
||||
'url': 'webapp/index.php?c=IM&a=userInfo',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['target_id', '', '用户account_id(如果要获取自己的就传自己的account_id)']
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['info',_common.UserDetailInfo(), '用户信息(详细)'],
|
||||
]
|
||||
},
|
||||
]
|
@ -1,151 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class InGameMall(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'productList',
|
||||
'desc': '商品列表',
|
||||
'group': 'InGameMall',
|
||||
'url': 'webapp/index.php?c=InGameMall&a=productList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['page', 0, '第几页数据'],
|
||||
['seller', '', '查询指定账号'],
|
||||
['order_method', 0, '排序方式 0:默认排序(当前指向1) 1:上架时间 2:价格'],
|
||||
['order_asc', 0, '排序方向, 0:从小到大 1:从大到小'],
|
||||
['price_filter', '', '价格过滤(用|分割)'],
|
||||
['type_filter', '', '类型过滤 1:英雄皮肤 2:芯片 3:英雄碎片 5:金币 11:其它(材料、宝箱)'],
|
||||
['item_filter', '', 'itemId过滤(用|分割)'],
|
||||
['quality_filter', '', '品质过滤'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['pagination', _common.Pagination(), '分页信息'],
|
||||
['!rows', [_common.InGameMallGoods()], '商品列表']
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'sellS',
|
||||
'desc': '出售',
|
||||
'group': 'InGameMall',
|
||||
'surl': 'webapp/index.php?c=InGameMall&a=sellS',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['goods_uniid', '', '道具id'],
|
||||
['item_id', '', '道具itemId'],
|
||||
['amount', '', '出售数量'],
|
||||
['price', '', '出售价格'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead()
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'buyS',
|
||||
'desc': '购买',
|
||||
'group': 'InGameMall',
|
||||
'surl': 'webapp/index.php?c=InGameMall&a=buyS',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['order_id', '', '订单id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'cancelS',
|
||||
'desc': '下架物品',
|
||||
'group': 'InGameMall',
|
||||
'surl': 'webapp/index.php?c=InGameMall&a=cancelS',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['order_id', '', '订单id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'modifyPrice',
|
||||
'desc': '修改价格',
|
||||
'group': 'InGameMall',
|
||||
'url': 'webapp/index.php?c=InGameMall&a=modifyPrice',
|
||||
'params':[
|
||||
_common.ReqHead(),
|
||||
['order_id', '', '订单id'],
|
||||
['price', '', '价格'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead()
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'sellList',
|
||||
'desc': '出售记录',
|
||||
'group': 'InGameMall',
|
||||
'url': 'webapp/index.php?c=InGameMall&a=sellList',
|
||||
'params':[
|
||||
_common.ReqHead(),
|
||||
['page', 0, '第几页数据'],
|
||||
['order_method', 0, '排序方式 0:默认排序(当前指向1) 1:购买时间 2:价格'],
|
||||
['order_asc', 0, '排序方向, 0:从小到大 1:从大到小'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['pagination', _common.Pagination(), '分页信息'],
|
||||
['!rows', [_common.InGameMallGoods()], '商品列表']
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'buyList',
|
||||
'desc': '购买记录',
|
||||
'group': 'InGameMall',
|
||||
'url': 'webapp/index.php?c=InGameMall&a=buyList',
|
||||
'params':[
|
||||
_common.ReqHead(),
|
||||
['page', 0, '第几页数据'],
|
||||
['order_method', 0, '排序方式 0:默认排序(当前指向1) 1:购买时间 2:价格'],
|
||||
['order_asc', 0, '排序方向, 0:从小到大 1:从大到小'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['pagination', _common.Pagination(), '分页信息'],
|
||||
['!rows', [_common.InGameMallGoods()], '商品列表']
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'shoppingCartList',
|
||||
'desc': '购物车列表',
|
||||
'group': 'InGameMall',
|
||||
'url': 'webapp/index.php?c=InGameMall&a=shoppingCartList',
|
||||
'params':[
|
||||
_common.ReqHead(),
|
||||
['order_ids', '', '订单id(多个订单用 | 隔开)'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!list', [_common.InGameMallGoods()], '商品列表']
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'shoppingCartBuyS',
|
||||
'desc': '购物车下单',
|
||||
'group': 'InGameMall',
|
||||
'surl': 'webapp/index.php?c=InGameMall&a=shoppingCartBuyS',
|
||||
'params':[
|
||||
_common.ReqHead(),
|
||||
['order_ids', '', '订单id(多个订单用 | 隔开)'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},
|
||||
]
|
457
doc/Market.py
Normal file
457
doc/Market.py
Normal file
@ -0,0 +1,457 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class NftIntro(object):
|
||||
|
||||
def __init__(self):
|
||||
self.fields = [
|
||||
['idx', 0, 'idx'],
|
||||
['token_id', '', 'token_id'],
|
||||
['token_type', 0, 'nft类型 1:英雄 2:枪支 3:芯片'],
|
||||
['amount', 0, '堆叠数量'],
|
||||
['createtime', 0, '创建时间(上架时间)'],
|
||||
['modifytime', 0, '修改时间(更新价格等)'],
|
||||
['s_price', 0, '出售价格-暂定'],
|
||||
['c_name', '', '缓存-名称'],
|
||||
['c_job', 0, '缓存-职业'],
|
||||
['c_lv', 0, '缓存-级别'],
|
||||
['c_id', 0, '缓存-idx'],
|
||||
['selling', 0, '正在售卖的个数'],
|
||||
['o_link', '', '关联的售卖单号'],
|
||||
['details', _common.NftDetail(), 'nft列表'],
|
||||
]
|
||||
|
||||
class CurrencyType(object):
|
||||
def __init__(self):
|
||||
self.fields = [
|
||||
['name', '', '货币名称'],
|
||||
['address', '', '货币地址'],
|
||||
]
|
||||
|
||||
class TransactionRecord(object):
|
||||
def __init__(self):
|
||||
self.fields = [
|
||||
['idx', '', 'idx'],
|
||||
['createtime', 0, '交易成功时间'],
|
||||
['orderid', 0, 'market订单id'],
|
||||
['o_link', '', '合约订单id'],
|
||||
['seller', '', '卖家'],
|
||||
['buyer', '', '买家'],
|
||||
['tokenid', '', 'tokenid'],
|
||||
['amount', 0, '商品数量'],
|
||||
['name', '', '商品名称'],
|
||||
['type', 0, '商品类型'],
|
||||
]
|
||||
class Market(object):
|
||||
|
||||
def __init__(self):
|
||||
self.internalApis = [
|
||||
{
|
||||
'name': 'tokenAuth',
|
||||
'desc': 'tokenAuth',
|
||||
'group': 'Market',
|
||||
'url': 'webapp/index.php?c=Market&a=tokenAuth',
|
||||
'params': [
|
||||
['account', '', '钱包账号'],
|
||||
['token', '', 'token'],
|
||||
['net_id', '', '网络id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['account', '', 'account'],
|
||||
]
|
||||
},
|
||||
]
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'getNonce',
|
||||
'desc': '获取登录认证nonce',
|
||||
'group': 'Market',
|
||||
'url': 'webapp/index.php?c=Market&a=getNonce',
|
||||
'params': [
|
||||
['account', '', '钱包账号'],
|
||||
['token', '', 'token'],
|
||||
['net_id', '', '网络id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['state', 0, '0:token无效客户端需签名 1:token是有效的客户端不需要再次签名'],
|
||||
['nonce', '', 'nonce'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'auth',
|
||||
'desc': '认证',
|
||||
'group': 'Market',
|
||||
'url': 'webapp/index.php?c=Market&a=auth',
|
||||
'params': [
|
||||
['account', '', '钱包账号'],
|
||||
['tips', '', 'tips'],
|
||||
['nonce', '', 'nonce'],
|
||||
['signature', '', '签名'],
|
||||
['net_id', '', '网络id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['token', '', 'token'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'getPreSaleInfo',
|
||||
'desc': '获取预售信息',
|
||||
'group': 'Market',
|
||||
'url': 'webapp/index.php?c=Market&a=getPreSaleInfo',
|
||||
'params': [
|
||||
['account', '', '钱包账号'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['presale_info', _common.PreSaleInfo(), '预售信息'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'searchBox',
|
||||
'desc': '获取预售商品信息',
|
||||
'group': 'Market',
|
||||
'url': 'webapp/index.php?c=Market&a=searchBox',
|
||||
'params': [
|
||||
['account', 0, '钱包账号'],
|
||||
['page', 0, '获取第几页数据'],
|
||||
['sort', '', '排序字段'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!rows', [_common.PreSaleBox()], '商品信息'],
|
||||
['page', _common.Page(), '分页信息'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'buyBox',
|
||||
'desc': '购买箱子',
|
||||
'group': 'Market',
|
||||
'url': 'webapp/index.php?c=Market&a=buyBox',
|
||||
'params': [
|
||||
['token', '', 'token'],
|
||||
['type', '', '注意是箱子id!!!(box_id)'],
|
||||
['buyer_address', '', '购买者账号id'],
|
||||
['price', '', 'price'],
|
||||
['payment_token_address', '', 'payment_token_address'],
|
||||
['nonce', '', 'nonce'],
|
||||
['signature', '', '签名soliditySha3(type, payment_token_address, price, nonce), 签名的replace客户端做处理'],
|
||||
['net_id', '', '网络id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['order_id', '', '订单号(errcode = 0的时候,根据订单号客户端定时调用queryOrder接口)查询状态'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'openLuckyBox',
|
||||
'desc': '开宝箱',
|
||||
'group': 'Market',
|
||||
'url': 'webapp/index.php?c=Market&a=openLuckyBox',
|
||||
'params': [
|
||||
['account', 0, '钱包账号'],
|
||||
['token', '', 'token'],
|
||||
['token_id', '', '宝箱token_id'],
|
||||
['net_id', '', '网络id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!tokenIds', [''], '开出的物品tokenId列表'],
|
||||
['nonce', '', 'nonce'],
|
||||
['signature', '', 'signature'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'getPhase3Box',
|
||||
'desc': '开启第三阶段奖励',
|
||||
'group': 'Market',
|
||||
'url': 'webapp/index.php?c=Market&a=getPhase3box',
|
||||
'params': [
|
||||
['account', 0, '钱包账号'],
|
||||
['token', '', 'token'],
|
||||
['token_id', '', '宝箱token_id'],
|
||||
['net_id', '', '网络id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!rows', [_common.Phase3Box()], '宝箱信息'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'openPhase3Box',
|
||||
'desc': '开启第三阶段奖励',
|
||||
'group': 'Market',
|
||||
'url': 'webapp/index.php?c=Market&a=openPhase3Box',
|
||||
'params': [
|
||||
['account', 0, '钱包账号'],
|
||||
['token', '', 'token'],
|
||||
['token_id', '', '宝箱token_id'],
|
||||
['net_id', '', '网络id'],
|
||||
['box_id', '', '箱子id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'queryPhase3Box',
|
||||
'desc': '查询阶段3开宝箱信息',
|
||||
'group': 'Market',
|
||||
'url': 'webapp/index.php?c=Market&a=queryPhase3Box',
|
||||
'params': [
|
||||
['account', 0, '钱包账号'],
|
||||
['token', '', 'token'],
|
||||
['net_id', '', '网络id'],
|
||||
['box_id', '', '箱子id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['state', '', '0:开启中 1:开启成功'],
|
||||
['cec', 0, '奖励cec'],
|
||||
['!nfts', [_common.NftDetail()], '获得的nft列表'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'queryLuckyBox',
|
||||
'desc': '查询开宝箱信息',
|
||||
'group': 'Market',
|
||||
'url': 'webapp/index.php?c=Market&a=queryLuckyBox',
|
||||
'params': [
|
||||
['account', 0, '钱包账号'],
|
||||
['token', '', 'token'],
|
||||
['token_id', '', '宝箱token_id'],
|
||||
['txhash', '', 'txhash'],
|
||||
['net_id', '', '网络id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['state', '', '0:开启中 1:开启成功'],
|
||||
['!nfts', [_common.NftDetail()], '获得的nft列表'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'activateNft',
|
||||
'desc': '激活nft',
|
||||
'group': 'Market',
|
||||
'url': 'webapp/index.php?c=Market&a=activateNft',
|
||||
'params': [
|
||||
['account', 0, '钱包账号'],
|
||||
['token', '', 'token'],
|
||||
['token_id', '', 'token_id'],
|
||||
['net_id', '', '网络id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['new_token_id', '', '新nft tokenid'],
|
||||
['nonce', '', 'nonce'],
|
||||
['signature', '', 'signature'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'queryActivateResult',
|
||||
'desc': '查询开宝箱信息',
|
||||
'group': 'Market',
|
||||
'url': 'webapp/index.php?c=Market&a=queryActivateResult',
|
||||
'params': [
|
||||
['account', 0, '钱包账号'],
|
||||
['token', '', 'token'],
|
||||
['token_id', '', '宝箱token_id'],
|
||||
['txhash', '', 'txhash'],
|
||||
['net_id', '', '网络id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['state', '', '0:激活中 1:激活成功'],
|
||||
['nft', _common.NftDetail(), '新nft信息'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'queryOrder',
|
||||
'desc': '查询订单状态',
|
||||
'group': 'Market',
|
||||
'url': 'webapp/index.php?c=Market&a=queryOrder',
|
||||
'params': [
|
||||
['account', 0, '钱包账号'],
|
||||
['token', '', 'token'],
|
||||
['order_id', 0, '订单id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(errcode='当errcode!=0的时候客户端不需要再调用(停止定时器)'),
|
||||
['state', 0, '0:订单不存在 1:购买成功 2:交易处理中 3:交易失败'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'getNftList',
|
||||
'desc': '获取账号对应的nft列表',
|
||||
'group': 'Market',
|
||||
'url': 'webapp/index.php?c=Market&a=getNftList',
|
||||
'params': [
|
||||
['account', '', '账号id'],
|
||||
['token', '', 'token'],
|
||||
['page', 0, '获取第几页数据'],
|
||||
['type', '', 'nft类型 1:英雄 2:枪支 3:芯片 [可选]如果不传则所有'],
|
||||
['state', '', '0:正常状态 1:出售中 2:出租中 [可选]如果不传则所有'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!nfts', [_common.NftDetail()], 'nft列表'],
|
||||
['page', _common.Page(), '分页信息'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'getNftDetail',
|
||||
'desc': '获取商品详情',
|
||||
'group': 'Market',
|
||||
'url': 'webapp/index.php?c=Market&a=getNftDetail',
|
||||
'params': [
|
||||
['account', '', '账号id'],
|
||||
['token', '', 'token'],
|
||||
['token_id', '', 'token_id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['info', _common.NftDetail(), '商品详细信息'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': '/api/nft/info',
|
||||
'desc': '获取nft信息',
|
||||
'group': 'Market',
|
||||
'url': '/api/nft/info/{$tokenId}',
|
||||
'params': [
|
||||
['account', '', '账号id'],
|
||||
],
|
||||
'response': [
|
||||
_common.NftView(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'listSellNfts',
|
||||
'desc': '获取上架出售的NFTs',
|
||||
'group': 'Market',
|
||||
'url': 'webapp/index.php?c=Market&a=listSellNfts',
|
||||
'params': [
|
||||
['account', '', '账号id'],
|
||||
['token', '', 'token'],
|
||||
['start', 0, '分页开始偏移'],
|
||||
['page_size', 0, '分页大小'],
|
||||
['order_method', 0, '排序方式 0:默认排序(当前指向1) 1:上架时间 2:价格 3:星级质量 4:等级 5:能量值 6:生命值 7:攻击力 8:防御力'],
|
||||
['order_asc', 0, '排序方向, 0:从小到大 1:从大到小'],
|
||||
['type', 0, '物品类型 1:英雄 2:武器 3:芯片 5:碎片'],
|
||||
['job_filters', '', '职业过滤(用|分割)'],
|
||||
['search_filters', '', '搜索过滤(用|分割)'],
|
||||
['lv_filter', 0, '等级过滤'],
|
||||
['quality_filter', 0, '品阶顾虑'],
|
||||
['durability_filter', 0, '能量过滤'],
|
||||
['price_filter', '', '价格过滤(用|分割)']
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['total', 0, '出售的列表总数量(当前过滤配置)'],
|
||||
['start', 0, '有效的分页偏移'],
|
||||
['page_size', 0, '有效的分页大小'],
|
||||
['!nfts', [NftIntro()], 'nft列表'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'listMyNfts',
|
||||
'desc': '获取自己的NFTs',
|
||||
'group': 'Market',
|
||||
'url': 'webapp/index.php?c=Market&a=listMyNfts',
|
||||
'params': [
|
||||
['account', '', '账号id'],
|
||||
['token', '', 'token'],
|
||||
['start', 0, '分页开始偏移'],
|
||||
['page_size', 0, '分页大小'],
|
||||
['order_method', 0, '排序方式 0:默认排序(当前指向1) 1:等级 2:能量值 3:星级 4:tokenid'],
|
||||
['order_asc', 0, '排序方向, 0:从小到大 1:从大到小'],
|
||||
['type', 0, '物品类型 1:英雄 2:武器 3:芯片 5:碎片'],
|
||||
['job_filters', '', '职业过滤(用|分割)'],
|
||||
['search_filters', '', '搜索过滤(用|分割)'],
|
||||
['lv_filter', 0, '等级过滤'],
|
||||
['quality_filter', 0, '品阶顾虑'],
|
||||
['durability_filter', 0, '能量过滤'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['total', 0, '出售的列表总数量(当前过滤配置)'],
|
||||
['start', 0, '有效的分页偏移'],
|
||||
['page_size', 0, '有效的分页大小'],
|
||||
['!nfts', [NftIntro()], 'nft列表'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'sellMyNft',
|
||||
'desc': '出售NFT',
|
||||
'group': 'Market',
|
||||
'url': 'webapp/index.php?c=Market&a=sellMyNft',
|
||||
'params': [
|
||||
['account', '', '账号id'],
|
||||
['token', '', 'token'],
|
||||
['nft_token', '', 'nft_token'],
|
||||
['s_price', '', '出售价格USDT'],
|
||||
['amount', 0, '出售数量'],
|
||||
['payment_token_address', '', 'payment_token_address'],
|
||||
['nonce', '', 'nonce'],
|
||||
['signature', '', '签名soliditySha3(type, payment_token_address, price, nonce), 签名的replace客户端做处理'],
|
||||
['net_id', '', '网络id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead()
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'buyNft',
|
||||
'desc': '购买NFT',
|
||||
'group': 'Market',
|
||||
'url': 'webapp/index.php?c=Market&a=buyNft',
|
||||
'params': [
|
||||
['account', '', '账号id'],
|
||||
['token', '', 'token'],
|
||||
['nft_token', '', 'nft_token'],
|
||||
['payment_token_address', '', 'payment_token_address'],
|
||||
['nonce', '', 'nonce'],
|
||||
['signature', '', '签名soliditySha3(type, payment_token_address, price, nonce), 签名的replace客户端做处理'],
|
||||
['net_id', '', '网络id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead()
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'getSupportedCurrencyTypes',
|
||||
'desc': '获取支持的货币类型',
|
||||
'group': 'Market',
|
||||
'url': 'webapp/index.php?c=Market&a=getSupportedCurrencyTypes',
|
||||
'params': [
|
||||
['account', '', '账号id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!list', [CurrencyType()], '货币类型列表'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'getTransactionRecord',
|
||||
'desc': '获取交易记录',
|
||||
'group': 'Market',
|
||||
'url': 'webapp/index.php?c=Market&a=getTransactionRecord',
|
||||
'params': [
|
||||
['account', '', '账号id'],
|
||||
['type', 0, '物品类型 0:所有 1:英雄 2:武器 3:芯片 5:碎片'],
|
||||
['start', 0, '分页开始偏移'],
|
||||
['page_size', 0, '分页大小'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['total', 0, '交易记录总数'],
|
||||
['start', 0, '有效的分页偏移'],
|
||||
['page_size', 0, '有效的分页大小'],
|
||||
['!list', [TransactionRecord()], '交易记录列表'],
|
||||
]
|
||||
}
|
||||
|
||||
]
|
298
doc/Mission.py
298
doc/Mission.py
@ -1,161 +1,137 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class Mission(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'missionList',
|
||||
'desc': '获取任务列表',
|
||||
'group': 'Mission',
|
||||
'url': 'webapp/index.php?c=Mission&a=missionList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['type', 0, '任务类型(!!!注意这里的类型和任务表里的任务不是一回事) 1:每日任务 2:赛季周任务 3:悬赏任务'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['current_day_active_value', 0, '当前日活跃度'],
|
||||
['current_week_active_value', 0, '当前周活跃度'],
|
||||
['day_active_limit', 0, '每日活跃度上限'],
|
||||
['week_active_limit', 0, '每周活跃度上限'],
|
||||
['day_time_end', 0, '每日活动结算时间'],
|
||||
['week_time_end', 0, '每周活动结算时间'],
|
||||
['!mission_list1', [_common.Mission()], '任务列表1'],
|
||||
['!mission_list2', [_common.Mission()], '任务列表2'],
|
||||
['refreshInfo', RefreshInfo(), '刷新任务信息'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'sendOfferRewardMission',
|
||||
'desc': '派遣悬赏任务',
|
||||
'group': 'Mission',
|
||||
'url': 'webapp/index.php?c=Mission&a=sendOfferRewardMission',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['mission_id', 0, '任务id'],
|
||||
['objects', '', '悬赏任务对象列表type:id|']
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['award', _common.Award(), '奖励信息'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
['mission_chg', _common.Mission(), '任务的最新信息(可能为null客户端需要做容错处理)'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'cancelOfferRewardMission',
|
||||
'desc': '撤销派遣悬赏任务',
|
||||
'group': 'Mission',
|
||||
'url': 'webapp/index.php?c=Mission&a=cancelOfferRewardMission',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['mission_id', 0, '任务id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['award', _common.Award(), '奖励信息'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'boostOfferRewardMissionPreview',
|
||||
'desc': '加速悬赏任务',
|
||||
'group': 'Mission',
|
||||
'url': 'webapp/index.php?c=Mission&a=boostOfferRewardMissionPreview',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['mission_id', 0, '任务id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['boost_chg', 0, '加速所需ceg'],
|
||||
]
|
||||
},{
|
||||
'name': 'boostOfferRewardMission',
|
||||
'desc': '加速悬赏任务',
|
||||
'group': 'Mission',
|
||||
'url': 'webapp/index.php?c=Mission&a=boostOfferRewardMission',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['mission_id', 0, '任务id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['award', _common.Award(), '奖励信息'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
['mission_chg', _common.Mission(), '任务的最新信息(可能为null客户端需要做容错处理)'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'offerRewardMissionPreview',
|
||||
'desc': '悬赏任务奖励预览',
|
||||
'group': 'Mission',
|
||||
'url': 'webapp/index.php?c=Mission&a=boostOfferRewardMission',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['mission_id', 0, '任务id'],
|
||||
['objects', '', '悬赏任务对象列表type:id|']
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!data', _common.AwardItem(), '奖励信息'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'commitMission',
|
||||
'desc': '提交任务(领取奖励)',
|
||||
'group': 'Mission',
|
||||
'url': 'webapp/index.php?c=Mission&a=commitMission',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['mission_id', 0, '任务id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['award', _common.Award(), '奖励信息'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
['mission_chg', _common.Mission(), '任务的最新信息(可能为null客户端需要做容错处理)'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'commitAll',
|
||||
'desc': '提交所有任务(全部领取)',
|
||||
'group': 'Mission',
|
||||
'url': 'webapp/index.php?c=Mission&a=commitAll',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['types', [0], '任务类型数组'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['award', _common.Award(), '奖励信息'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},{
|
||||
'name': 'refreshMissionList',
|
||||
'desc': '刷新任务',
|
||||
'group': 'Mission',
|
||||
'url': 'webapp/index.php?c=Mission&a=refreshMissionList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
class RefreshInfo(object):
|
||||
|
||||
def __init__(self):
|
||||
self.fields = [
|
||||
['refreshTimes', 0, '当前刷新次数'],
|
||||
['maxRefreshTimes', 0, '最大刷新次数'],
|
||||
['item_id', 0, '消耗道具id'],
|
||||
['item_num', 0, '消耗道具数量'],
|
||||
]
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class Mission(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'missionList',
|
||||
'desc': '获取任务列表',
|
||||
'group': 'Mission',
|
||||
'url': 'webapp/index.php?c=Mission&a=missionList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['type', 0, '任务类型(!!!注意这里的类型和任务表里的任务不是一回事) 1:每日任务 2:赛季周任务 3:悬赏任务'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['current_day_active_value', 0, '当前日活跃度'],
|
||||
['current_week_active_value', 0, '当前周活跃度'],
|
||||
['day_active_limit', 0, '每日活跃度上限'],
|
||||
['week_active_limit', 0, '每周活跃度上限'],
|
||||
['day_time_end', 0, '每日活动结算时间'],
|
||||
['week_time_end', 0, '每周活动结算时间'],
|
||||
['!mission_list1', [_common.Mission()], '任务列表1'],
|
||||
['!mission_list2', [_common.Mission()], '任务列表2'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'sendOfferRewardMission',
|
||||
'desc': '派遣悬赏任务',
|
||||
'group': 'Mission',
|
||||
'url': 'webapp/index.php?c=Mission&a=sendOfferRewardMission',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['mission_id', 0, '任务id'],
|
||||
['objects', '', '悬赏任务对象列表type:id|']
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['award', _common.Award(), '奖励信息'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
['mission_chg', _common.Mission(), '任务的最新信息(可能为null客户端需要做容错处理)'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'cancelOfferRewardMission',
|
||||
'desc': '撤销派遣悬赏任务',
|
||||
'group': 'Mission',
|
||||
'url': 'webapp/index.php?c=Mission&a=cancelOfferRewardMission',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['mission_id', 0, '任务id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['award', _common.Award(), '奖励信息'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'boostOfferRewardMissionPreview',
|
||||
'desc': '加速悬赏任务',
|
||||
'group': 'Mission',
|
||||
'url': 'webapp/index.php?c=Mission&a=boostOfferRewardMissionPreview',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['mission_id', 0, '任务id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['boost_chg', 0, '加速所需ceg'],
|
||||
]
|
||||
},{
|
||||
'name': 'boostOfferRewardMission',
|
||||
'desc': '加速悬赏任务',
|
||||
'group': 'Mission',
|
||||
'url': 'webapp/index.php?c=Mission&a=boostOfferRewardMission',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['mission_id', 0, '任务id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['award', _common.Award(), '奖励信息'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
['mission_chg', _common.Mission(), '任务的最新信息(可能为null客户端需要做容错处理)'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'offerRewardMissionPreview',
|
||||
'desc': '悬赏任务奖励预览',
|
||||
'group': 'Mission',
|
||||
'url': 'webapp/index.php?c=Mission&a=boostOfferRewardMission',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['mission_id', 0, '任务id'],
|
||||
['objects', '', '悬赏任务对象列表type:id|']
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!data', _common.AwardItem(), '奖励信息'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'commitMission',
|
||||
'desc': '提交任务(领取奖励)',
|
||||
'group': 'Mission',
|
||||
'url': 'webapp/index.php?c=Mission&a=commitMission',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['mission_id', 0, '任务id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['award', _common.Award(), '奖励信息'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
['mission_chg', _common.Mission(), '任务的最新信息(可能为null客户端需要做容错处理)'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'commitAll',
|
||||
'desc': '提交所有任务(全部领取)',
|
||||
'group': 'Mission',
|
||||
'url': 'webapp/index.php?c=Mission&a=commitAll',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['types', [0], '任务类型数组'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['award', _common.Award(), '奖励信息'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},
|
||||
]
|
||||
|
117
doc/Other.py
117
doc/Other.py
@ -11,114 +11,17 @@ class Other(object):
|
||||
'url': 'webapp/index.php?c=Other&a=tag',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['types', '', '红点类型(!!!注意由于红点的计算量较大,最好并发分批取红点状态)","分割 1:英雄 2:芯片 3:背包 4:签到 5:算力 6:皮肤 7:新人任务 8:日周常任务 9:拉新任务'],
|
||||
['param', '0', '1:任务 2:碎片'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!list', [Tag()], '红点列表']
|
||||
['!data', [
|
||||
['mission',0,'任务: 1 提示, 0 不提示'],
|
||||
['piece',[
|
||||
['hero',0,'英雄碎片: 1 提示, 0 不提示'],
|
||||
['gun',0,'枪械碎片: 1 提示, 0 不提示'],
|
||||
],'碎片']
|
||||
], '提示信息'],
|
||||
]
|
||||
},{
|
||||
'name': 'cancelTag',
|
||||
'desc': '红点提示',
|
||||
'group': 'Other',
|
||||
'url': 'webapp/index.php?c=Other&a=cancelTag',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['type', '', '1:英雄 2:芯片 3:背包 5:算力 6:皮肤'],
|
||||
['item_unnid', '', 'item_unnid'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'getGameModuleState',
|
||||
'desc': '功能模块的状态',
|
||||
'group': 'Other',
|
||||
'url': 'webapp/index.php?c=Other&a=getGameModuleState',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['data', [
|
||||
['firstTopUp',0,'首充: 1 已充, 0 未充'],
|
||||
['signDayState',0,'7日签到: 1 签满, 0 未签满'],
|
||||
['rankState',0,'排位: 1 赛季开始了, 0 赛季未开始'],
|
||||
['nextRankSeasonCountdown',0,'下赛季倒计时'],
|
||||
['hashRateState',0,'算力: 1 开始, 0 未开始'],
|
||||
], '信息'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'getCecRewardHistory',
|
||||
'desc': 'cec历史记录界面',
|
||||
'group': 'Other',
|
||||
'url': 'webapp/index.php?c=Other&a=getCecRewardHistory',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!list', [
|
||||
['type',0,'1:排位 2:算力 3:质押'],
|
||||
['cecVal',0,'cec数量'],
|
||||
['createtime',0,'获取时间']
|
||||
], '历史记录'],
|
||||
['cec',0,'cec'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'getMapModeList',
|
||||
'desc': '获取当前开启的地图模式列表',
|
||||
'group': 'Other',
|
||||
'url': 'webapp/index.php?c=Other&a=getMapModeList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!mode_list', [
|
||||
['id',0,'mapMode配置id'],
|
||||
['task_state',0,'巡回赛状态 0:未开 1:已开,id=7(巡回模式)才有'],
|
||||
['stage_state',0,'阶段开始状态 0:未开 1:已开,id=7(巡回模式)才有'],
|
||||
['next_star_time',0,'下个阶段开始时间,id=7(巡回模式)才有'],
|
||||
['next_end_time',0,'下个阶段结束时间,id=7(巡回模式)才有'],
|
||||
['state',0,'开启状态 0:未开 1:已开,特殊模式才有(见mapMode配置表)'],
|
||||
['daily_open_time',0,'每天开始时间1,特殊模式才有(见mapMode配置表)'],
|
||||
['daily_end_time',0,'每天结束时间1,特殊模式才有(见mapMode配置表)'],
|
||||
['daily_open_time_2',0,'每天开始时间2,特殊模式才有(见mapMode配置表)'],
|
||||
['daily_end_time_2',0,'每天结束时间2,特殊模式才有(见mapMode配置表)'],
|
||||
], '地图模式列表'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'getServerSwitch',
|
||||
'desc': '开关信息',
|
||||
'group': 'Other',
|
||||
'url': 'webapp/index.php?c=Other&a=getServerSwitch',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['data', [
|
||||
['heroChain',0,'英雄上链'],
|
||||
['heroUp',0,'英雄升阶'],
|
||||
['goldSyn',0,'金币合成'],
|
||||
['heroPieceSyn',0,'英雄碎片合成'],
|
||||
['chipPieceSyn',0,'芯片碎片合成'],
|
||||
['shop',0,'商店'],
|
||||
], '开关信息(如果没有则默认为未开启)'],
|
||||
]
|
||||
},
|
||||
]
|
||||
|
||||
class Tag(object):
|
||||
|
||||
def __init__(self):
|
||||
self.fields = [
|
||||
['type', 0, '红点类型'],
|
||||
['state', 0, '红点状态 0:无 1:有'],
|
||||
]
|
||||
}
|
||||
]
|
@ -1,93 +0,0 @@
|
||||
import _common
|
||||
|
||||
class OutAppTools(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'getCircuitRanking',
|
||||
'desc': '巡回赛赛季排行',
|
||||
'group': 'OutAppCircuit',
|
||||
'url': 'webapp/index.php?c=OutAppCircuit&a=getCircuitRanking',
|
||||
'params': [
|
||||
['address', '0', 'address'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!rank_list', [rankingInfo()], '榜'],
|
||||
['info', circuitInfo(), '信息'],
|
||||
]
|
||||
},{
|
||||
'name': 'getCircuitPhaseRanking',
|
||||
'desc': '巡回赛周期排行',
|
||||
'group': 'OutAppCircuit',
|
||||
'url': 'webapp/index.php?c=OutAppCircuit&a=getCircuitPhaseRanking',
|
||||
'params': [
|
||||
['address', '0', 'address'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!rank_list', [rankingInfo()], '榜'],
|
||||
['info', circuitInfo(), '信息'],
|
||||
]
|
||||
},{
|
||||
'name': 'getCircuitRewardHistory',
|
||||
'desc': '获取巡回赛奖励记录',
|
||||
'group': 'OutAppCircuit',
|
||||
'url': 'webapp/index.php?c=OutAppCircuit&a=getCircuitRewardHistory',
|
||||
'params': [
|
||||
['address', '0', 'address'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!data', [rewardInfo()], '奖励信息'],
|
||||
]
|
||||
},{
|
||||
'name': 'circuitSettlement',
|
||||
'desc': '巡回赛结算奖励',
|
||||
'group': 'OutAppCircuit',
|
||||
'url': 'webapp/index.php?c=OutAppCircuit&a=circuitSettlement',
|
||||
'params': [
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
|
||||
]
|
||||
|
||||
|
||||
class rewardInfo(object):
|
||||
|
||||
def __init__(self):
|
||||
self.fields = [
|
||||
['start_time', 0, '阶段开始时间'],
|
||||
['end_time', 0, '阶段结束时间'],
|
||||
['reward', 0, '-1:未结算 0:结算无奖励'],
|
||||
]
|
||||
|
||||
class circuitInfo(object):
|
||||
|
||||
def __init__(self):
|
||||
self.fields = [
|
||||
['start_time', 0, '开始时间'],
|
||||
['end_time', 0, '结束时间'],
|
||||
['ranking', 0, '排名'],
|
||||
['score', 0, '积分'],
|
||||
]
|
||||
|
||||
class rankingInfo(object):
|
||||
|
||||
def __init__(self):
|
||||
self.fields = [
|
||||
['account_id', 0, 'account'],
|
||||
['name', 0, '名字'],
|
||||
['head_id', 0, '头像'],
|
||||
['head_frame', 0, '头像框'],
|
||||
['hero_id', 0, '英雄ItemId'],
|
||||
['skin_id', 0, '皮肤ItemId'],
|
||||
['ranking', 0, '排名'],
|
||||
['score', 0, '积分'],
|
||||
['score_boost', 0, '加成的积分'],
|
||||
['cec', 0, 'cec(个人榜信息才有)'],
|
||||
]
|
@ -1,77 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class OutAppNft(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'getWebInfo',
|
||||
'desc': 'web信息',
|
||||
'group': 'OutAppNft',
|
||||
'url': 'webapp/index.php?c=OutAppNft&a=getWebInfo',
|
||||
'params': [
|
||||
['channel', '', 'channel'],
|
||||
['openId', 0, 'openId'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['info', WebInfo(), 'info'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'getHeroInfo',
|
||||
'desc': 'hero信息',
|
||||
'group': 'OutAppNft',
|
||||
'url': 'webapp/index.php?c=OutAppNft&a=getHeroInfo',
|
||||
'params': [
|
||||
['net_id', '', 'net_id'],
|
||||
['token_id', '', 'token_id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['info', _common.NftInfo(), 'info'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'getGoldBullionInfo',
|
||||
'desc': 'gold bullion信息',
|
||||
'group': 'OutAppNft',
|
||||
'url': 'webapp/index.php?c=OutAppNft&a=getGoldBullionInfo',
|
||||
'params': [
|
||||
['net_id', '', 'net_id'],
|
||||
['token_id', '', 'token_id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['info', _common.NftInfo(), 'info'],
|
||||
]
|
||||
},
|
||||
]
|
||||
|
||||
class WebInfo(object):
|
||||
|
||||
def __init__(self):
|
||||
self.fields = [
|
||||
['loginVal', 0, '今日登录状态 1:登录 0:未登录'],
|
||||
['battleTimes', '', '战斗次数'],
|
||||
['winTimes', 0, '胜利次数'],
|
||||
['kills', 0, '击杀数'],
|
||||
['getGoldVal', 0, '获得金币数'],
|
||||
]
|
||||
|
||||
class NftInfo(object):
|
||||
|
||||
def __init__(self):
|
||||
self.fields = [
|
||||
['idx', 0, 'idx'],
|
||||
['owner_address', '', '钱包地址'],
|
||||
['item_id', 0, 'item_id'],
|
||||
['token_id', 0, 'token_id'],
|
||||
['token_type', 0, 'token_type'],
|
||||
['contract_address', '', '合约地址'],
|
||||
['image', '', '头像立绘'],
|
||||
['full_image', '', '全身立绘'],
|
||||
['!details', [], '详细'],
|
||||
]
|
@ -1,19 +0,0 @@
|
||||
import _common
|
||||
|
||||
class OutAppTools(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'refreshServerSwitch',
|
||||
'desc': '刷新服务器开关配置',
|
||||
'group': 'OutAppTools',
|
||||
'url': 'webapp/index.php?c=OutAppTools&a=refreshServerSwitch',
|
||||
'params': [
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
|
||||
]
|
@ -5,60 +5,7 @@
|
||||
* @apiVersion 0.0.1
|
||||
* @apiSuccessExample {json} Success-Response:
|
||||
* 所有的协议都可能携带award和property_chg,award用来显示获得的东西,propery_chg用来更新本地数据
|
||||
* 公共错误码
|
||||
* errcode=1001 session_id已过期(客户端需回到游戏主界面)
|
||||
* errcode=1006 该接口已升级为S版(客户端需要转到sapi)
|
||||
* errcode=1008 该接口功能已关闭(admin后台上配置为功能关闭,客户端需刷新功能开关)
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @api {GET} AA接口变更日志 接口变更日志
|
||||
* @apiPermission none
|
||||
* @apiGroup 接口变更日志
|
||||
* @apiVersion 0.0.1
|
||||
* @apiSuccessExample {json} Success-Response:
|
||||
* 2024/07/25
|
||||
* c=Bag&a=useItemS
|
||||
* 2024/08/01
|
||||
* c=Bag&a=buyItemS
|
||||
* c=Avatar&a=buyAvatarS
|
||||
* c=Chip&a=upgradeQualityS
|
||||
* c=Chip&a=synChipS
|
||||
* c=HashRate&a=commitTaskS
|
||||
* c=Hero&a=synHeroS
|
||||
* c=Hero&a=upgradeQualityS
|
||||
* c=HeroSkin&a=synSkinS
|
||||
* c=HeroSkin&a=takeonSkinS
|
||||
* c=HeroSkin&a=demountSkinS
|
||||
* c=InGameMall&a=sellS
|
||||
* c=InGameMall&a=buyS
|
||||
* c=InGameMall&a=cancelS
|
||||
* c=InGameMall&a=shoppingCartBuyS
|
||||
* c=Sign&a=receiveS
|
||||
* c=User&a=selectFreeItemS
|
||||
* 2024/08/02
|
||||
* c=Battle 改为 c=BattleData
|
||||
* 2024/08/06
|
||||
* 删除 c=Market
|
||||
* 2024/08/08
|
||||
* 删除 c=Mall
|
||||
* 删除 c=Staking
|
||||
* 2024/08/09
|
||||
* 删除 c=Gun
|
||||
* 删除 c=Nft
|
||||
* 删除 c=AccountVerify
|
||||
* 删除 c=Currency
|
||||
* 删除 c=PayMethod
|
||||
* 删除 c=OutAppPlanet
|
||||
* 删除 c=BlockChain&a=getTransactionList
|
||||
* 删除 c=BlockChain&a=getTransactionInfo
|
||||
* 删除 c=BlockChain&a=reportResult
|
||||
* 删除 c=BlockChain&a=getJumpInfo
|
||||
* 删除 c=BlockChain&a=buyDiamond
|
||||
* 删除 c=BlockChain&a=buyMallProduct
|
||||
* 删除 c=OutAppNft&a=getNftList
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
@ -13,9 +13,7 @@ class Ranking(object):
|
||||
'url': 'webapp/index.php?c=Ranking&a=rankingList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['mode', 0, ' 1:4v4 2:pvp '],
|
||||
['class', 0, ' 1:总榜 2:日榜 3:周榜 '],
|
||||
['type', 0, ' 1:场次榜 2:吃鸡榜 3:mvp榜 4:前三名榜 5:击杀榜'],
|
||||
['type', 0, ' 1:场次榜 2:吃鸡榜 3:mvp榜 4:前三名榜 5:击杀榜']
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
@ -33,8 +31,7 @@ class Ranking(object):
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['status', 0, '0:常规状态 1:引导初始排位 2:赛季初,需结算上个赛季'],
|
||||
['is_rank', 0, '1:赛季开始了 0:赛季未开始'],
|
||||
['countdown', 0, '下赛季倒计时(秒) 0 表示这赛季还未结束'],
|
||||
['is_rank', 0, '1:赛季开始了 0:赛季未开始']
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -1,72 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class RookieTask(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'bindRookieTask',
|
||||
'desc': '记录用户新人任务开启',
|
||||
'group': 'RookieTask',
|
||||
'url': 'webapp/index.php?c=RookieTask&a=bindRookieTask',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},{
|
||||
'name': 'taskList',
|
||||
'desc': '新人任务列表',
|
||||
'group': 'RookieTask',
|
||||
'url': 'webapp/index.php?c=RookieTask&a=taskList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['day', 0, '天'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!task_list1', [Task()], '任务列表1'],
|
||||
['!task_list2', [Task()], '任务列表2'],
|
||||
]
|
||||
},{
|
||||
'name': 'commitTaskS',
|
||||
'desc': '提交任务',
|
||||
'group': 'RookieTask',
|
||||
'surl': 'webapp/index.php?c=RookieTask&a=commitTaskS',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['task_id', 0, '任务id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['award', _common.Award(), '奖励信息'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},{
|
||||
'name': 'getTaskRedTags',
|
||||
'desc': '任务红点',
|
||||
'group': 'RookieTask',
|
||||
'url': 'webapp/index.php?c=RookieTask&a=getTaskRedTags',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['list', [], '红点信息'],
|
||||
]
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
class Task(object):
|
||||
|
||||
def __init__(self):
|
||||
self.fields = [
|
||||
['task_id', 0, '任务id'],
|
||||
['current', 0, '任务进度-当前'],
|
||||
['target', 0, '任务进度-目标'],
|
||||
['state', 0, '任务状态 0:未完成 1:完成未领取 2:完成已领取 3:未到时间'],
|
||||
]
|
@ -1,84 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class SavingPot(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'info',
|
||||
'desc': '存钱罐信息',
|
||||
'group': 'SavingPot',
|
||||
'url': 'webapp/index.php?c=SavingPot&a=info',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['data', Info(), '存钱罐信息'],
|
||||
]
|
||||
},{
|
||||
'name': 'smashOpenS',
|
||||
'desc': '砸开',
|
||||
'group': 'SavingPot',
|
||||
'surl': 'webapp/index.php?c=SavingPot&a=smashOpenS',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['award', _common.AwardItem(), '奖励'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},{
|
||||
'name': 'drawGoldS',
|
||||
'desc': '取出',
|
||||
'group': 'SavingPot',
|
||||
'surl': 'webapp/index.php?c=SavingPot&a=drawGoldS',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['award', _common.AwardItem(), '奖励'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},{
|
||||
'name': 'getRecord',
|
||||
'desc': '获取记录',
|
||||
'group': 'SavingPot',
|
||||
'url': 'webapp/index.php?c=SavingPot&a=getRecord',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['page', 0, '第几页数据'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['pagination', _common.Pagination(), '分页信息'],
|
||||
['!rows', [RecordList()], '记录列表']
|
||||
]
|
||||
},
|
||||
|
||||
]
|
||||
|
||||
|
||||
class Info(object):
|
||||
|
||||
def __init__(self):
|
||||
self.fields = [
|
||||
['bind_gold', 0, '绑定金币数'],
|
||||
['draw_state', 0, '1:今日已领取或砸开 0:反之'],
|
||||
['up_times', 0, '今日升阶次数'],
|
||||
]
|
||||
|
||||
class RecordList(object):
|
||||
|
||||
def __init__(self):
|
||||
self.fields = [
|
||||
['account_id', 0, 'account_id'],
|
||||
['way', 0, '1:draw 2:open'],
|
||||
['amount', 0, '绑币数量'],
|
||||
['createtime', 0, '创建时间'],
|
||||
['modifytime', 0, '修改时间'],
|
||||
]
|
@ -18,6 +18,18 @@ class Season(object):
|
||||
_common.RspHead(),
|
||||
['info', _common.Season(), '赛季信息'],
|
||||
]
|
||||
},{
|
||||
'name': 'infoNew',
|
||||
'desc': '获取赛季信息',
|
||||
'group': 'Season',
|
||||
'url': 'webapp/index.php?c=Season&a=infoNew',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!info', [_common.Season()], '赛季信息'],
|
||||
]
|
||||
},{
|
||||
'name': 'getRankingInfo',
|
||||
'desc': '获取赛季排行信息',
|
||||
@ -25,15 +37,15 @@ class Season(object):
|
||||
'url': 'webapp/index.php?c=Season&a=getRankingInfo',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['rank',0,'段位id']
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!rankList', [_common.SeasonRank()], '赛季排行信息'],
|
||||
['myRanked', _common.SeasonRank(), '我的排行信息'],
|
||||
['info', _common.SeasonRank(), '赛季排行信息'],
|
||||
]
|
||||
},{
|
||||
'name': 'getDataInfo',
|
||||
'desc': '获取赛季战斗信息',
|
||||
'desc': '获取赛季基本信息',
|
||||
'group': 'Season',
|
||||
'url': 'webapp/index.php?c=Season&a=getDataInfo',
|
||||
'params': [
|
||||
@ -41,29 +53,34 @@ class Season(object):
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['info', _common.SeasonData(), '赛季战斗信息'],
|
||||
['info', _common.SeasonData(), '赛季基本信息'],
|
||||
]
|
||||
},{
|
||||
'name': 'getSeasonPoint',
|
||||
'desc': '获取所有赛季积分获取信息',
|
||||
'name': 'getHeroInfo',
|
||||
'desc': '获取赛季基本信息',
|
||||
'group': 'Season',
|
||||
'url': 'webapp/index.php?c=Season&a=getSeasonPoint',
|
||||
'url': 'webapp/index.php?c=Season&a=getHeroInfo',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!data', [SeasonPoint()], '赛季积分信息'],
|
||||
['!info', [_common.SeasonHero()], '赛季使用英雄信息'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'getMissionReward',
|
||||
'desc': '获取赛季任务奖励',
|
||||
'group': 'Season',
|
||||
'url': 'webapp/index.php?c=Season&a=getMissionReward',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['award', _common.Award(), '奖励信息'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},
|
||||
|
||||
]
|
||||
|
||||
class SeasonPoint(object):
|
||||
|
||||
def __init__(self):
|
||||
self.fields = [
|
||||
['season', 0, '赛季'],
|
||||
['ranking', 0, '排名'],
|
||||
['ranking_point', 0, 'SV积分'],
|
||||
]
|
@ -16,7 +16,7 @@ class ServerSwitch(object):
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!open_list', [0], '开放的功能列表 1:悬赏任务 3:禁用商城、market所有和这次修改相关的'],
|
||||
['!open_list', [0], '开放的功能列表 1:悬赏任务'],
|
||||
]
|
||||
},
|
||||
]
|
||||
|
200
doc/Shop.py
200
doc/Shop.py
@ -1,100 +1,100 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class Shop(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'getGoodsList',
|
||||
'desc': '获取商品列表',
|
||||
'group': 'Shop',
|
||||
'url': 'webapp/index.php?c=Shop&a=getGoodsList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['shop_id', 0, '商店id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!goods_list', [_common.Goods()], '商品列表'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'buyGoodsS',
|
||||
'desc': '购买商品',
|
||||
'group': 'Shop',
|
||||
'surl': 'webapp/index.php?c=Shop&a=buyGoodsS',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['goods_id', '', '商品唯一id'],
|
||||
['goods_num', 0, '商品数量 如果是宝箱可分为1、10 其他情况的购买为1'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['award', _common.Award(), '奖励信息'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'boxPreview',
|
||||
'desc': '宝箱道具预览',
|
||||
'group': 'Shop',
|
||||
'url': 'webapp/index.php?c=Shop&a=boxPreview',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['goods_id', 0, '商品唯一id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!items', [0], '宝箱物品列表'],
|
||||
['free_num', 0, '免费次数'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'queryInAppBalance',
|
||||
'desc': '查询当天内购限制余额',
|
||||
'group': 'Shop',
|
||||
'url': 'webapp/index.php?c=Shop&a=queryInAppBalance',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['balance', '', '美元'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'inappPurchase',
|
||||
'desc': '发起一个内购(购买钻石)',
|
||||
'group': 'Shop',
|
||||
'url': 'webapp/index.php?c=Shop&a=inappPurchase',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['goods_id', '', '商品唯一id'],
|
||||
['goods_num', 0, '商品数量'],
|
||||
['platform', 0, '平台 1:android 2:ios'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['order_id', '', '订单id'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'queryInAppPurchase',
|
||||
'desc': '查询内购(购买钻石)状态',
|
||||
'group': 'Shop',
|
||||
'url': 'webapp/index.php?c=Shop&a=queryInAppPurchase',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['order_id', '', '订单id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['order_id', '', '订单id'],
|
||||
['item_id', '', '商品id'],
|
||||
['item_num', 0, '商品数量'],
|
||||
['status', 0, '订单状态 0:未支付 1:已支付 2:支付失败'],
|
||||
]
|
||||
},
|
||||
]
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class Shop(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'info',
|
||||
'desc': '获取商店信息',
|
||||
'group': 'Shop',
|
||||
'url': 'webapp/index.php?c=Shop&a=info',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['shop_id', '', '商店id shop_id=100:商店外购买'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['info', _common.Shop(), '商店信息'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'buyGoods',
|
||||
'desc': '购买商品',
|
||||
'group': 'Shop',
|
||||
'url': 'webapp/index.php?c=Shop&a=buyGoods',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['shop_id', 0, '商店id shop_id=100特殊商店id'],
|
||||
['goods_id', 0, '商品id'],
|
||||
['goods_num', 0, '商品数量'],
|
||||
['cost_item_id', 0, '支付方式'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['award', _common.Award(), '奖励信息'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
['goods_chg', _common.Goods(), '购买后更新商品的最新信息(可能为null客户端需要做容错处理)'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'getDiscountList',
|
||||
'desc': '获取商品折扣列表',
|
||||
'group': 'Shop',
|
||||
'url': 'webapp/index.php?c=Shop&a=getDiscountList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!goods_list', [_common.DiscountInfo()], '折扣的商品列表'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'getGoodsList',
|
||||
'desc': '获取商品列表',
|
||||
'group': 'Shop',
|
||||
'url': 'webapp/index.php?c=Shop&a=getGoodsList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!goods_list', [_common.NewGoods()], '商品列表'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'getShopNames',
|
||||
'desc': '获取商店名称',
|
||||
'group': 'Shop',
|
||||
'url': 'webapp/index.php?c=Shop&a=getShopNames',
|
||||
'params': [
|
||||
_common.ReqHead()
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!shop_name_list', [_common.ShopName()], '商店id名字对应表']
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'buyGoodsNew',
|
||||
'desc': '购买商品(新)',
|
||||
'group': 'Shop',
|
||||
'url': 'webapp/index.php?c=Shop&a=buyGoodsNew',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['id', 0, '商品唯一id,参见shopGoods表'],
|
||||
['token_type', '', "选用币种"],
|
||||
['goods_num', 0, '商品数量'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['award', _common.Award(), '奖励信息'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
['goods_chg', _common.NewGoods(), '购买后更新商品的最新信息(可能为null客户端需要做容错处理)'],
|
||||
]
|
||||
},
|
||||
|
||||
]
|
||||
|
73
doc/Sign.py
73
doc/Sign.py
@ -5,32 +5,49 @@ import _common
|
||||
class Sign(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'getSignList',
|
||||
'desc': '7日签到',
|
||||
'group': 'Sign',
|
||||
'url': 'webapp/index.php?c=Sign&a=getSignList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['data', _common.Sign(), '签到信息'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'receiveS',
|
||||
'desc': '领取签到奖励',
|
||||
'group': 'Sign',
|
||||
'surl': 'webapp/index.php?c=Sign&a=receiveS',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['sign_id', '', '签到id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},
|
||||
self.apis_ = [
|
||||
{
|
||||
'desc': 'signInfo',
|
||||
'group': 'Sign',
|
||||
'url': 'webapp/index.php?c=Sign&a=signInfo',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'desc': 'signReward',
|
||||
'group': 'Sign',
|
||||
'url': 'webapp/index.php?c=Sign&a=signReward',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'desc': 'signDoubleReward',
|
||||
'group': 'Sign',
|
||||
'url': 'webapp/index.php?c=Sign&a=signDoubleReward',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'desc': 'getSignOrder',
|
||||
'group': 'Sign',
|
||||
'url': 'webapp/index.php?c=Sign&a=getSignOrder',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
]
|
||||
|
62
doc/Star.py
62
doc/Star.py
@ -1,62 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class Star(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'getList',
|
||||
'desc': '成长任务列表',
|
||||
'group': 'Star',
|
||||
'url': 'webapp/index.php?c=Star&a=getList',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['countdown', 0, '赛季结束时间'],
|
||||
['!data', [Task()], '任务列表'],
|
||||
]
|
||||
},{
|
||||
'name': 'commit',
|
||||
'desc': '领取任务',
|
||||
'group': 'Star',
|
||||
'url': 'webapp/index.php?c=Star&a=commit',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['mission_id', 0, '任务id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['award', _common.Award(), '奖励信息'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},{
|
||||
'name': 'commitAll',
|
||||
'desc': '全部领取',
|
||||
'group': 'Star',
|
||||
'url': 'webapp/index.php?c=Star&a=commitAll',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['award', _common.Award(), '奖励信息'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},
|
||||
|
||||
]
|
||||
|
||||
|
||||
class Task(object):
|
||||
|
||||
def __init__(self):
|
||||
self.fields = [
|
||||
['mission_id', 0, '任务id'],
|
||||
['current', 0, '任务进度-当前'],
|
||||
['target', 0, '任务进度-目标'],
|
||||
['state', 0, '任务状态 0:任务已完成-可领取奖励 1:任务已完成-已领取奖励 -1:任务进行中-未完成(不可领取)'],
|
||||
]
|
219
doc/Team.py
Normal file
219
doc/Team.py
Normal file
@ -0,0 +1,219 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class Team(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'createTeam',
|
||||
'desc': '创建队伍',
|
||||
'group': 'Team',
|
||||
'url': 'webapp/index.php?c=Team&a=createTeam',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['node_id', 0, '节点id'],
|
||||
['map_id', 0, '地图id'],
|
||||
['match_mode', 0, '0: 匹配赛模式 1: 排位赛 2: pve'],
|
||||
['pve_instance_id', 0, 'pve副本id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['team_uuid', '', '队伍唯一id'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'teamInfo',
|
||||
'desc': '获取队伍信息',
|
||||
'group': 'Team',
|
||||
'url': 'webapp/index.php?c=Team&a=teamInfo',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['team_uuid', '', '队伍唯一id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['team_info', _common.TeamInfo(), '队伍信息'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'joinTeam',
|
||||
'desc': '加入队伍',
|
||||
'group': 'Team',
|
||||
'url': 'webapp/index.php?c=Team&a=joinTeam',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['team_uuid', '', '队伍唯一id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['team_uuid', '', '队伍唯一id'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'leaveTeam',
|
||||
'desc': '离开队伍',
|
||||
'group': 'Team',
|
||||
'url': 'webapp/index.php?c=Team&a=leaveTeam',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['team_uuid', '', '队伍唯一id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'kickout',
|
||||
'desc': '踢人',
|
||||
'group': 'Team',
|
||||
'url': 'webapp/index.php?c=Team&a=kickout',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['team_uuid', '', '队伍唯一id'],
|
||||
['target_id', '', '目标account_id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'closeSlot',
|
||||
'desc': '关闭槽位',
|
||||
'group': 'Team',
|
||||
'url': 'webapp/index.php?c=Team&a=closeSlot',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['team_uuid', '', '队伍唯一id'],
|
||||
['slot_id', '', '队伍卡槽id 共计:1 2 3 4'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'openSlot',
|
||||
'desc': '开启槽位',
|
||||
'group': 'Team',
|
||||
'url': 'webapp/index.php?c=Team&a=openSlot',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['team_uuid', '', '队伍唯一id'],
|
||||
['slot_num', '', '队伍人数'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'handover',
|
||||
'desc': '转移队长职位',
|
||||
'group': 'Team',
|
||||
'url': 'webapp/index.php?c=Team&a=handover',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['team_uuid', '', '队伍唯一id'],
|
||||
['target_id', '', '目标account_id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'cancel',
|
||||
'desc': '取消游戏开始',
|
||||
'group': 'Team',
|
||||
'url': 'webapp/index.php?c=Team&a=cancel',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['team_uuid', '', '队伍唯一id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'startGame',
|
||||
'desc': '开始游戏',
|
||||
'group': 'Team',
|
||||
'url': 'webapp/index.php?c=Team&a=startGame',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['team_uuid', '', '队伍唯一id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},{
|
||||
'name': 'doReady',
|
||||
'desc': '准备/取消',
|
||||
'group': 'Team',
|
||||
'url': 'webapp/index.php?c=Team&a=doReady',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['team_uuid', '', '队伍唯一id'],
|
||||
['ready_state', 0, '1:准备 0:取消'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},{
|
||||
'name': 'setHero',
|
||||
'desc': '设置出战英雄',
|
||||
'group': 'Team',
|
||||
'url': 'webapp/index.php?c=Team&a=setHero',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['team_uuid', '', '队伍唯一id'],
|
||||
['hero_uid', 0, '英雄uniid'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},{
|
||||
'name': 'setPreset',
|
||||
'desc': '设置备战',
|
||||
'group': 'Team',
|
||||
'url': 'webapp/index.php?c=Team&a=setPreset',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['team_uuid', '', '队伍唯一id'],
|
||||
['hero_uid', 0, '英雄uniid'],
|
||||
['chip_page', 0, '铭文页id'],
|
||||
['skill_id', 0, '技能item id'],
|
||||
['weapon_uid1', 0, '枪1uniid'],
|
||||
['weapon_uid2', 0, '枪2uniid'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},{
|
||||
'name': 'setHeroSkin',
|
||||
'desc': '设置英雄皮肤',
|
||||
'group': 'Team',
|
||||
'url': 'webapp/index.php?c=Team&a=setHeroSkin',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['team_uuid', '', '队伍唯一id'],
|
||||
['hero_uid', 0, '英雄uniid'],
|
||||
['skin_id', 0, '皮肤item id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},{
|
||||
'name': 'getPveFragmentNumOrDay',
|
||||
'desc': '当天获取碎片的数量',
|
||||
'group': 'Team',
|
||||
'url': 'webapp/index.php?c=Team&a=getPveFragmentNumOrDay',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['heroNum',0,'英雄碎片数量'],
|
||||
['gunNum',0,'枪械碎片数量']
|
||||
]
|
||||
},
|
||||
]
|
171
doc/User.py
171
doc/User.py
@ -31,6 +31,36 @@ class User(object):
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'beforeActive',
|
||||
'desc': '激活用户',
|
||||
'group': 'User',
|
||||
'url': 'webapp/index.php?c=User&a=beforeActive',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!before', [ ['hero','','英雄信息'],['gun','','枪械信息'],['bceg_max','','最高bceg'],['bceg','','实际bceg'] ],'转换前'],
|
||||
['!after', [ ['hero','','英雄信息'],['gun','','枪械信息'],['ceg','','ceg'] ], '转换后'],
|
||||
['cost', 0, '所需手续费'],
|
||||
]
|
||||
},{
|
||||
'name': 'activate',
|
||||
'desc': '激活用户(免费转NFT)',
|
||||
'group': 'User',
|
||||
'url': 'webapp/index.php?c=User&a=activate',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['hero_uniid', 0, '英雄唯一id'],
|
||||
['gun_uniid', '', '枪械唯一id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!data', [ ['hero_id','','英雄id'],['gun_id','','枪械id'],['ceg','','ceg'] ], '激活成果'],
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'update',
|
||||
'desc': '更新用户信息',
|
||||
@ -69,19 +99,6 @@ class User(object):
|
||||
['info',_common.UserInfo(), '用户信息'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'getBattleInfo',
|
||||
'desc': '获取用户战斗信息',
|
||||
'group': 'User',
|
||||
'url': 'webapp/index.php?c=User&a=getBattleInfo',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['info',_common.UserBattleInfo(), '用户战斗信息'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'query',
|
||||
'desc': '通过名字查询用户信息(精准查询)',
|
||||
@ -110,21 +127,6 @@ class User(object):
|
||||
['info',_common.UserDetailInfo(), '用户信息(详细)'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'chartInfo',
|
||||
'desc': '用户五维图信息',
|
||||
'group': 'User',
|
||||
'url': 'webapp/index.php?c=User&a=chartInfo',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['target_id', '', '用户account_id(如果要获取自己的就传自己的account_id)']
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['pvpInfo',_common.UserChartInfo(), '4v4数据'],
|
||||
['mobaInfo',_common.UserChartInfo(), 'moba数据'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'like',
|
||||
'desc': '点赞',
|
||||
@ -137,8 +139,33 @@ class User(object):
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},
|
||||
{
|
||||
},{
|
||||
'name': 'initRank',
|
||||
'desc': '排位初始化段位',
|
||||
'group': 'User',
|
||||
'url': 'webapp/index.php?c=User&a=initRank',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},{
|
||||
'name': 'selectFreeItem',
|
||||
'desc': '选择免费英雄和武器',
|
||||
'group': 'User',
|
||||
'url': 'webapp/index.php?c=User&a=selectFreeItem',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['hero_id', '', '英雄 item id'],
|
||||
['gun_id', '', '枪械 item id']
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||
]
|
||||
},{
|
||||
'name': 'getFreeItemList',
|
||||
'desc': '获取免费英雄和武器列表',
|
||||
'group': 'User',
|
||||
@ -150,89 +177,5 @@ class User(object):
|
||||
_common.RspHead(),
|
||||
['!data', [], '列表'],
|
||||
]
|
||||
},{
|
||||
'name': 'selectFreeItemS',
|
||||
'desc': '获取免费英雄和武器列表',
|
||||
'group': 'User',
|
||||
'surl': 'webapp/index.php?c=User&a=selectFreeItemS',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['itemId', 0, '英雄itemId'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!data', [], 'item'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'method': 'POST',
|
||||
'name': 'updateAddressBind',
|
||||
'desc': '更新钱包绑定信息',
|
||||
'group': 'User',
|
||||
'url': 'webapp/index.php?c=User&a=updateAddressBind',
|
||||
'is_json_params': True,
|
||||
'request_params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'params': [
|
||||
['jwt', '', 'jwt数据'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['is_retry', 0, '是否重试 0:不用重试 1:重试'],
|
||||
['retry_time', 0, '重试时间(单位秒)'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'setUserHonor',
|
||||
'desc': '设置用户荣誉',
|
||||
'group': 'User',
|
||||
'url': 'webapp/index.php?c=User&a=setUserHonor',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['token_type', '', '类型(目前只有一个类型:6)'],
|
||||
['state', '', '1:佩戴 0:取消'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},{
|
||||
'name': 'getUserGameTimes',
|
||||
'desc': '获取用户游戏场次',
|
||||
'group': 'User',
|
||||
'url': 'webapp/index.php?c=User&a=getUserGameTimes',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['target_id', '', 'account_id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['data', 0, '游戏场次'],
|
||||
]
|
||||
},{
|
||||
'name': 'refreshUserInfo',
|
||||
'desc': '刷新用户信息',
|
||||
'group': 'User',
|
||||
'url': 'webapp/index.php?c=User&a=refreshUserInfo',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['info',_common.UserInfo(), '用户信息'],
|
||||
]
|
||||
},{
|
||||
'name': 'getUserVip',
|
||||
'desc': '用户VIP',
|
||||
'group': 'User',
|
||||
'url': 'webapp/index.php?c=User&a=getUserVip',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['vip',0, 'vip等级'],
|
||||
['exp',0, 'vip经验'],
|
||||
]
|
||||
},
|
||||
]
|
||||
|
58
doc/Wallet.py
Normal file
58
doc/Wallet.py
Normal file
@ -0,0 +1,58 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import _common
|
||||
|
||||
class Wallet(object):
|
||||
|
||||
def __init__(self):
|
||||
self.apis = [
|
||||
{
|
||||
'name': 'withdrawal',
|
||||
'desc': '提现(game->token)',
|
||||
'group': 'Wallet',
|
||||
'url': 'webapp/index.php?c=Wallet&a=withdrawal',
|
||||
'params': [
|
||||
['account', 0, '钱包账号'],
|
||||
['token', '', 'token'],
|
||||
['type', 0, '货币类型 1:金币 2:钻石'],
|
||||
['amount', '', '金额'],
|
||||
['net_id', '', '网络id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['seq_id', '', '提现序号(errcode = 0的时候,根据序号客户端定时调用queryWithdrawalResult接口)查询状态'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'queryWithdrawalResult',
|
||||
'desc': '查询提现结果(game->token)',
|
||||
'group': 'Wallet',
|
||||
'url': 'webapp/index.php?c=Wallet&a=queryWithdrawalResult',
|
||||
'params': [
|
||||
['account', 0, '钱包账号'],
|
||||
['token', '', 'token'],
|
||||
['seq_id', 0, '提现序号'],
|
||||
['net_id', '', '网络id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(errcode='当errcode!=0的时候客户端不需要再调用(停止定时器)'),
|
||||
['state', 0, '0:提现序号不存在 1:提现成功 2:提现处理中 3:提现失败'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'queryRechargeResult',
|
||||
'desc': '查询充值结果(token->game)',
|
||||
'group': 'Wallet',
|
||||
'url': 'webapp/index.php?c=Wallet&a=queryRechargeResult',
|
||||
'params': [
|
||||
['account', 0, '钱包账号'],
|
||||
['token', '', 'token'],
|
||||
['txhash', 0, 'hash值'],
|
||||
['net_id', '', '网络id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['state', 0, '0:保留 1:充值成功 2:充值处理中 3:充值失败'],
|
||||
]
|
||||
},
|
||||
]
|
941
doc/_common.py
941
doc/_common.py
File diff suppressed because it is too large
Load Diff
@ -1,41 +0,0 @@
|
||||
# Download base image ubuntu 20.04
|
||||
FROM ubuntu:20.04
|
||||
|
||||
# LABEL about the custom image
|
||||
LABEL maintainer="aozhiwei@kingsome.cn"
|
||||
LABEL version="0.1"
|
||||
LABEL description="This is custom Docker Image for \
|
||||
the php Services."
|
||||
|
||||
# RUN sh -c '/bin/echo -e "\n6\n70" | sh Anaconda3-4.4.0-Linux-x86_64.sh'
|
||||
# 6 70
|
||||
RUN apt update
|
||||
RUN apt install -y tzdata
|
||||
RUN apt install -y net-tools curl iputils-ping vim mariadb-client redis php php-fpm php-pdo php-mysql php-redis php-mbstring php7.4-curl
|
||||
ENV SERVER_ENV=TEST
|
||||
#php-pecl-libsodium
|
||||
#RUN sh -c '/bin/echo -e "\n6\n70" | apt install -y net-tools iputils-ping mariadb-client php php-fpm'
|
||||
#docker run -d -e SERVER_ENV=TEST -it -v /data:/data -p 9001:9000 --add-host='mysql-host:172.17.0.1' --add-host='redis-host:172.17.0.1' php:7.4 /bin/bash
|
||||
#docker exec -it xxx /bin/bash
|
||||
#service php7.4-fpm start
|
||||
|
||||
#/etc/php/7.4/fpm/pool.d/www.conf
|
||||
#;listen = /run/php/php7.4-fpm.sock
|
||||
#listen = 172.17.0.2:9000
|
||||
|
||||
#/etc/php/7.4/php-fpm.conf
|
||||
#; Default Value: log/php-fpm.log
|
||||
#error_log = /var/log/php7.4-fpm.log
|
||||
|
||||
#touch /data/php_errors.log
|
||||
#chmod 777 /data/php_errors.log
|
||||
|
||||
#/etc/php/7.4/php.ini
|
||||
#;error_log = syslog
|
||||
#error_log = /data/php_errors.log
|
||||
#error_reporting = E_ALL
|
||||
#log_errors = On
|
||||
|
||||
#/etc/hosts
|
||||
#172.17.0.1 mysql-host
|
||||
#172.17.0.1 redis-host
|
@ -1 +0,0 @@
|
||||
/etc/php/7.4/mods-available/mysqlnd.ini
|
@ -1 +0,0 @@
|
||||
/etc/php/7.4/mods-available/opcache.ini
|
@ -1 +0,0 @@
|
||||
/etc/php/7.4/mods-available/pdo.ini
|
@ -1 +0,0 @@
|
||||
/etc/php/7.4/mods-available/calendar.ini
|
@ -1 +0,0 @@
|
||||
/etc/php/7.4/mods-available/ctype.ini
|
@ -1 +0,0 @@
|
||||
/etc/php/7.4/mods-available/exif.ini
|
@ -1 +0,0 @@
|
||||
/etc/php/7.4/mods-available/ffi.ini
|
@ -1 +0,0 @@
|
||||
/etc/php/7.4/mods-available/fileinfo.ini
|
@ -1 +0,0 @@
|
||||
/etc/php/7.4/mods-available/ftp.ini
|
@ -1 +0,0 @@
|
||||
/etc/php/7.4/mods-available/gettext.ini
|
@ -1 +0,0 @@
|
||||
/etc/php/7.4/mods-available/iconv.ini
|
@ -1 +0,0 @@
|
||||
/etc/php/7.4/mods-available/igbinary.ini
|
@ -1 +0,0 @@
|
||||
/etc/php/7.4/mods-available/json.ini
|
@ -1 +0,0 @@
|
||||
/etc/php/7.4/mods-available/mbstring.ini
|
@ -1 +0,0 @@
|
||||
/etc/php/7.4/mods-available/mysqli.ini
|
@ -1 +0,0 @@
|
||||
/etc/php/7.4/mods-available/pdo_mysql.ini
|
@ -1 +0,0 @@
|
||||
/etc/php/7.4/mods-available/phar.ini
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user