Compare commits

..

2 Commits
master ... map

Author SHA1 Message Date
hujiabin
add642541c 1 2023-12-21 17:05:26 +08:00
hujiabin
d88a77e92f 活动 2023-12-21 17:02:53 +08:00
496 changed files with 92785 additions and 38973 deletions

View File

@ -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

View File

@ -0,0 +1,7 @@
# 数据库
结构变更的表
t_first_topup
新增的表
t_orderid

View File

@ -1,11 +0,0 @@
<?php
return array(
'instance_id' => 1,
'host' => 'mysql-host',
'port' => 3306,
'user' => 'root',
'passwd' => 'keji178',
'dbname' => 'accountdb1',
);

View File

@ -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
);

View File

@ -1,10 +0,0 @@
<?php
return array(
'instance_id' => 1,
'host' => 'mysql-host',
'port' => 3306,
'user' => 'root',
'passwd' => 'keji178',
'dbname' => 'confdb_dev_1'
);

View File

@ -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);

View File

@ -1,11 +0,0 @@
<?php
return array(
'instance_id' => 1,
'host' => 'mysql-host',
'port' => 3306,
'user' => 'root',
'passwd' => 'keji178',
'dbname' => 'frienddb_dev_new'
);

View File

@ -1,11 +0,0 @@
<?php
return array(
array(
'instance_id' => 1,
'host' => 'mysql-host',
'port' => 3306,
'user' => 'root',
'passwd' => 'keji178',
)
);

View File

@ -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' => '',
),
);

View File

@ -1,10 +0,0 @@
<?php
return array(
'instance_id' => 1,
'host' => 'mysql-host',
'port' => 3306,
'user' => 'root',
'passwd' => 'keji178',
'dbname' => 'bcnft_dev',
);

View File

@ -1,10 +0,0 @@
<?php
return array(
'instance_id' => 1,
'host' => 'mysql-host',
'port' => 3306,
'user' => 'root',
'passwd' => 'root',
'dbname' => 'frienddb_dev_new',
);

View File

@ -1,10 +0,0 @@
<?php
return array(
'instance_id' => 1,
'host' => 'mysql-host',
'port' => 3306,
'user' => 'root',
'passwd' => 'keji178',
'dbname' => 'logdb_dev_1'
);

View File

@ -1,10 +0,0 @@
<?php
return array(
'instance_id' => 1,
'host' => 'mysql-host',
'port' => 3306,
'user' => 'root',
'passwd' => 'keji178',
'dbname' => 'maildb_dev_1'
);

View File

@ -1,7 +0,0 @@
<?php
return array(
'instance_id' => 1,
'host' => '127.0.0.1',
'port' => 7521
);

View File

@ -1,9 +0,0 @@
<?php
$gOnlyRoutes1 = array(
'Ops' => 1,
'Market' => 1,
);
$gExcludeRoutes = array(
);

View File

@ -1,10 +0,0 @@
<?php
return array(
'heroChain' => 1,
'heroUp' => 1,
'goldSyn' => 1,
'heroPieceSyn' => 1,
'chipPieceSyn' => 1,
);

View File

@ -1,5 +0,0 @@
<?php
return array(
'http://10.10.9.15:7672/webapp/index.php'
);

View File

@ -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);

View File

@ -1,11 +0,0 @@
<?php
return array(
array(
'instance_id' => 1,
'host' => 'mysql-host',
'port' => 3306,
'user' => 'root',
'passwd' => 'keji178',
)
);

View File

@ -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' => '',
),
);

View File

@ -1,10 +0,0 @@
<?php
return array(
'instance_id' => 1,
'host' => 'mysql-host',
'port' => 3306,
'user' => 'root',
'passwd' => 'keji178',
'dbname' => 'bcnft_dev',
);

View File

@ -1,10 +0,0 @@
<?php
return array(
'instance_id' => 1,
'host' => 'mysql-host',
'port' => 3306,
'user' => 'root',
'passwd' => 'root',
'dbname' => 'frienddb_dev_new',
);

View File

@ -1,7 +0,0 @@
<?php
return array(
'instance_id' => 1,
'host' => '127.0.0.1',
'port' => 7521
);

View File

@ -1,9 +0,0 @@
<?php
$gOnlyRoutes1 = array(
'Ops' => 1,
'Market' => 1,
);
$gExcludeRoutes = array(
);

View File

@ -1,5 +0,0 @@
<?php
return array(
'http://127.0.0.1:7671/webapp/index.php'
);

View File

@ -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(),
]
},
]

View File

@ -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(),
]
},
]

View File

@ -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'],
]
},
]

View File

@ -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(), '信息'],
]
}
]

View File

@ -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(),
]
}
]

View File

@ -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(),
]
},
]

View File

@ -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(),
]
},
]

25
doc/AccountVerify.py Normal file
View File

@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
import _common
class AccountVerify(object):
def __init__(self):
self.apis = [
{
'method': 'GET',
'name': 'canBind',
'desc': '是否可绑定',
'group': 'AccountVerify',
'url': 'webapp/index.php?c=AccountVerify&a=canBind',
'params': [
_common.ReqHead(),
['guest_account', '', 'guest账号'],
['target_plat', '', '绑定的目标账号渠道'],
['target_account', '', '绑定的目标账号'],
],
'response': [
_common.RspHead(),
]
},
]

View File

@ -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:未激活']
]
}
]

View File

@ -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(), '属性变更'],
]
},
]

View File

@ -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', '', '正文'],
]
}
]

View File

@ -45,10 +45,10 @@ class Avatar(object):
['property_chg', _common.PropertyChg(), '属性变更'],
]
},{
'name': 'buyAvatarS',
'name': 'buyAvatar',
'desc': '购买装饰物品',
'group': 'Avatar',
'surl': 'webapp/index.php?c=Avatar&a=buyAvatarS',
'url': 'webapp/index.php?c=Avatar&a=buyAvatar',
'params': [
_common.ReqHead(),
['item_id', '', '装饰物品itemId'],

View File

@ -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(), '属性变更'],
]
},
]

View File

@ -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(), '排位分信息'],
]
},
@ -120,14 +163,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 +184,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(),

View File

@ -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', [], '战斗奖励'],
]
},
]

View File

@ -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'],
]

View File

@ -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(), '转盘信息'],
]
}
]

View File

@ -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,33 +64,17 @@ class BlockChain(object):
'group': 'BlockChain',
'url': 'webapp/index.php?c=BlockChain&a=active721Nft',
'params': [
['type', 0, '1英雄 2金砖'],
['type', 0, '1英雄 2枪械 3芯片'],
['uniid', '', '唯一id'],
['account_address', '', '钱包地址'],
],
'response': [
_common.RspHead(),
['trans_id', '', '事务id'],
['trans_req', _common.MFTransactionRequest(), '调用合约参数'],
['!params', [''], '合约参数列表'],
]
},
{
'name': 'mintGoldBullion',
'desc': 'mint金砖',
'group': 'BlockChain',
'url': 'webapp/index.php?c=BlockChain&a=mintGoldBullion',
'params': [
['type', 0, '11w金币 210w金币'],
['account_address', '', '钱包地址'],
],
'response': [
_common.RspHead(),
['trans_id', '', '事务id'],
['trans_req', _common.MFTransactionRequest(), '调用合约参数'],
]
},
{
'name': 'buyDiamond(废弃)',
'name': 'buyDiamond',
'desc': '购买钻石',
'group': 'BlockChain',
'url': 'webapp/index.php?c=BlockChain&a=buyDiamond',
@ -106,7 +90,7 @@ class BlockChain(object):
]
},
{
'name': 'buyMallProduct(废弃)',
'name': 'buyMallProduct',
'desc': '购买中心化market商品',
'group': 'BlockChain',
'url': 'webapp/index.php?c=BlockChain&a=buyMallProduct',
@ -121,5 +105,5 @@ class BlockChain(object):
['order_id', '', '订单id'],
['!params', [''], '合约参数列表'],
]
}
},
]

View File

@ -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()], '物品列表']
]
},
]

View File

@ -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(), '属性变更'],
]
},
]

View File

@ -7,31 +7,65 @@ 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': 'setChipPage',
'desc': '设置铭文页',
'group': 'ChipPage',
'url': 'webapp/index.php?c=ChipPage&a=unlockSlot',
'url': 'webapp/index.php?c=ChipPage&a=setChipPage',
'params': [
_common.ReqHead(),
['hero_unnid', '', '英雄唯一id'],
['slot_id', '', '卡槽id'],
['page', '', '页id'],
],
'response': [
_common.RspHead(),
['property_chg', _common.PropertyChg(), '信息变更']
]
},{
'name': 'addChipPage',
'desc': '添加铭文页',
'group': 'ChipPage',
'url': 'webapp/index.php?c=ChipPage&a=addChipPage',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
]
},{
'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 +74,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()], '页信息']
]
},
]

View File

@ -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, '目标进度'],
]

123
doc/ComputingPower.py Normal file
View File

@ -0,0 +1,123 @@
# -*- coding: utf-8 -*-
import _common
class ComputingPower(object):
def __init__(self):
self.apis = [
{
'name': 'info',
'desc': '获取算力信息',
'group': 'ComputingPower',
'url': 'webapp/index.php?c=ComputingPower&a=info',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
['info', _common.ComputingPower(), '算力信息']
]
},
{
'name': 'getCrystalUi',
'desc': '获取晶体ui信息',
'group': 'ComputingPower',
'url': 'webapp/index.php?c=ComputingPower&a=getCrystalUi',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
['data', _common.CrystalUI(), '晶体的获取方式信息']
]
},
{
'name': 'exchangeCrystal',
'desc': '兑换晶体',
'group': 'ComputingPower',
'url': 'webapp/index.php?c=ComputingPower&a=exchangeCrystal',
'params': [
_common.ReqHead(),
['item_id', 0, '晶体item'],
# ['item_num', 0, '晶体数量'],
],
'response': [
_common.RspHead(),
['property_chg', _common.PropertyChg(), '属性变更'],
]
},
{
'name': 'getExchangeCrystalRecord',
'desc': '获取兑换晶体记录',
'group': 'ComputingPower',
'url': 'webapp/index.php?c=ComputingPower&a=getExchangeCrystalRecord',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
['data', _common.ExchangeCrystalRecord(), '算力信息']
]
},
{
'name': 'exchangePower',
'desc': '晶体兑换算力',
'group': 'ComputingPower',
'url': 'webapp/index.php?c=ComputingPower&a=exchangePower',
'params': [
_common.ReqHead(),
['num1', 0, '晶体260001兑换数'],
['num2', 0, '晶体260002兑换数'],
['num3', 0, '晶体260003兑换数'],
['num4', 0, '晶体260004兑换数'],
],
'response': [
_common.RspHead(),
['property_chg', _common.PropertyChg(), '属性变更'],
]
},
{
'name': 'exchangeUplimit',
'desc': '每周晶体兑换上限',
'group': 'ComputingPower',
'url': 'webapp/index.php?c=ComputingPower&a=exchangeUplimit',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
['data', _common.ExchangeCrystalNum(), '本周期晶体兑换信息']
]
},
{
'name': 'getRewardHistory',
'desc': '获取奖励历史',
'group': 'ComputingPower',
'url': 'webapp/index.php?c=ComputingPower&a=getRewardHistory',
'params': [
_common.ReqHead(),
['star_time', 0, '开始时间,都没传查全部'],
['end_time', 0, '结束时间,都没传查全部'],
],
'response': [
_common.RspHead(),
['!data', [_common.CECRewardHistory()], '算力信息'],
['pending_rewards', '', '剩余总计'],
]
},
#
# {
# 'name': 'getExchangePowerHistorys',
# 'desc': '获取兑换算力历史',
# 'group': 'ComputingPower',
# 'url': 'webapp/index.php?c=ComputingPower&a=getExchangePowerHistorys',
# 'params': [
# _common.ReqHead(),
# ],
# 'response': [
# _common.RspHead(),
# ['info', _common.ComputingPower(), '算力信息']
# ]
# },
]

View File

@ -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
View 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()], '列表信息'],
]
},
]

View File

@ -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(),
]
},
]

View File

@ -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
View 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(),
]
},
]

109
doc/Gun.py Normal file
View File

@ -0,0 +1,109 @@
# -*- 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'],
],
'response': [
_common.RspHead(),
['property_chg', _common.PropertyChg(), '属性变更'],
['old_gun', _common.Gun(), '枪械-老'],
['new_gun', _common.Gun(), '枪械-新'],
]
},
]

View File

@ -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:未完成'],
]

View File

@ -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(), '属性变更'],
]
}
]

View File

@ -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,7 +77,22 @@ class Hero(object):
['!data', [_common.Hero()], '英雄信息']
]
},
{
{
'name': 'upgradeLv',
'desc': '升级',
'group': 'Hero',
'url': 'webapp/index.php?c=Hero&a=upgradeLv',
'params': [
_common.ReqHead(),
['hero_uniid', 0, '英雄唯一id'],
],
'response': [
_common.RspHead(),
['property_chg', _common.PropertyChg(), '属性变更'],
['old_hero', _common.Hero(), '英雄-老'],
['new_hero', _common.Hero(), '英雄-新'],
]
},{
'name': 'setHeroSkill',
'desc': '设置通用技能',
'group': 'Hero',
@ -75,51 +134,46 @@ class Hero(object):
_common.RspHead(),
]
},{
'name': 'upgradeQualityS',
'desc': '英雄升阶',
'name': 'heroPieceSys',
'desc': '英雄碎片合成',
'group': 'Hero',
'surl': 'webapp/index.php?c=Hero&a=upgradeQualityS',
'url': 'webapp/index.php?c=Hero&a=heroPieceSys',
'params': [
_common.ReqHead(),
['hero_uniid', 0, '英雄唯一id'],
['item_id', 0, '碎片item_id'],
['item_num', 0, '碎片数量'],
['extra_item', 0, '附加道具(选填)'],
['extra_num', 0, '附加道具数量(选填)'],
['item_id', 0, '碎片itemID'],
],
'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(), '属性变更'],
['!hero', [_common.Hero()], '英雄信息']
]
},{
'name': 'synHeroS',
'desc': '英雄合成',
'name': 'beforeHeroReset',
'desc': '英雄重置前',
'group': 'Hero',
'surl': 'webapp/index.php?c=Hero&a=synHeroS',
'url': 'webapp/index.php?c=Hero&a=beforeHeroReset',
'params': [
_common.ReqHead(),
['item_id', 0, '碎片item_id'],
['item_num', 0, '碎片数量'],
['hero_unnid', 0, '英雄唯一id'],
],
'response': [
_common.RspHead(),
['item_id', 0, '英雄item_id'],
['property_chg', _common.PropertyChg(), '属性变更'],
['ceg', 0, 'ceg'],
['!cost', [_common.AwardItem()], '返还资源']
]
},{
'name': 'heroResetLevel',
'desc': '英雄重置',
'group': 'Hero',
'url': 'webapp/index.php?c=Hero&a=heroResetLevel',
'params': [
_common.ReqHead(),
['hero_unnid', 0, '英雄唯一id'],
['price', 0, 'ceg数量'],
],
'response': [
_common.RspHead(),
['trans_id', 0, '订单号'],
['params', 0, 'params'],
]
},

View File

@ -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(), '属性变更'],
]
},
]

View File

@ -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(), '属性变更'],
]
},
]

71
doc/Mall.py Normal file
View File

@ -0,0 +1,71 @@
# -*- coding: utf-8 -*-
import _common
class Mall(object):
def __init__(self):
self.apis = [
{
'name': 'productList',
'desc': '商品列表',
'group': 'Mall',
'url': 'webapp/index.php?c=Mall&a=productList',
'params': [
_common.ReqHead(),
['page', 0, '第几页数据'],
['seller', '', '查询指定钱包 为空的化查询所有人'],
['order_method', 0, '排序方式 0:默认排序(当前指向1) 1:上架时间 2:价格'],
['order_asc', 0, '排序方向, 0:从小到大 1:从大到小'],
['price_filter', '', '价格过滤(用|分割)'],
],
'response': [
_common.RspHead(),
['pagination', _common.Pagination(), '分页信息'],
['!rows', [_common.MallGoods()], '商品列表']
]
},
{
'name': 'sell',
'desc': '出售',
'group': 'Mall',
'url': 'webapp/index.php?c=Mall&a=sell',
'params': [
_common.ReqHead(),
['item_id', '', '道具id,目前只能卖CEG'],
['amount', '', '出售数量'],
['currency', '', "选用币种 目前只支持CEG USDC USDT"],
['price', '', '出售价格'],
],
'response': [
_common.RspHead()
]
},
{
'name': 'cancel',
'desc': '下架物品',
'group': 'Mall',
'url': 'webapp/index.php?c=Mall&a=cancel',
'params': [
_common.ReqHead(),
['goods_uuid', '', '商品唯一id'],
],
'response': [
_common.RspHead()
]
},
{
'name': 'modifyPrice',
'desc': '修改价格',
'group': 'Mall',
'url': 'webapp/index.php?c=Mall&a=modifyPrice',
'params':[
_common.ReqHead(),
['goods_uuid', '', '商品唯一id'],
['price', '', '出售价格USDT'],
],
'response': [
_common.RspHead()
]
},
]

34
doc/Market.py Normal file
View File

@ -0,0 +1,34 @@
# -*- coding: utf-8 -*-
import _common
class Market(object):
def __init__(self):
self.apis = [
{
'name': 'productList',
'desc': '获取上架出售的NFTs',
'group': 'Market',
'url': 'webapp/index.php?c=Market&a=productList',
'params': [
['page', 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', '', '价格过滤(用|分割)'],
['amount_filter', '', '数量过滤(低|高)'],
['seller', '', '出售方钱包地址'],
],
'response': [
_common.RspHead(),
['pagination', _common.Pagination(), '分页信息'],
['!rows', [_common.MarketGoods()], '商品列表'],
]
}
]

View File

@ -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(), '属性变更'],
]
},
]

62
doc/Nft.py Normal file
View File

@ -0,0 +1,62 @@
import _common
class Nft(object):
def __init__(self):
self.apis = [
{
'name': 'getNftListByType',
'desc': '获取nft列表类型',
'group': 'Nft',
'url': 'webapp/index.php?c=Nft&a=getNftListByType',
'params': [
_common.ReqHead(),
['token_type', '0', '类型 1:英雄 2:枪械 3:芯片 5:碎片 6:荣誉 19:戒指'],
],
'response': [
_common.RspHead(),
['!nfts', NftInfo(), 'nft列表'],
]
},{
'name': 'getNftList',
'desc': '获取nft列表所有',
'group': 'Nft',
'url': 'webapp/index.php?c=Nft&a=getNftList',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
['!nfts', NftInfo(), 'nft列表'],
]
},{
'name': 'NftDetail',
'desc': 'nft信息',
'group': 'Nft',
'url': 'webapp/index.php?c=Nft&a=NftDetail',
'params': [
_common.ReqHead(),
['net_id', '0', ''],
['token_id', '0', 'token_id'],
],
'response': [
_common.RspHead(),
['!info', [], 'nft信息'],
]
},
]
class NftInfo(object):
def __init__(self):
self.fields = [
['idx', 0, 'idx'],
['item_id', 0, 'item_id'],
['token_id', 0, 'token_id'],
['token_type', 0, 'token_type'],
['contract_address', 0, '合约地址'],
['createtime', 0, 'createtime'],
['!details', [], '详细'],
]

View File

@ -11,25 +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()], '红点列表']
]
},{
'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(), '属性变更'],
['!data', [
['mission',0,'任务: 1 提示, 0 不提示'],
['piece',[
['hero',0,'英雄碎片: 1 提示, 0 不提示'],
['gun',0,'枪械碎片: 1 提示, 0 不提示'],
],'碎片']
], '提示信息'],
]
},
{
@ -69,56 +61,4 @@ class Other(object):
['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:有'],
]
]

View File

@ -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(个人榜信息才有)'],
]

View File

@ -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', [], '详细'],
]

25
doc/OutAppPlanet.py Normal file
View File

@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
import _common
class OutAppPlanet(object):
def __init__(self):
self.apis = [
{
'name': 'buy',
'desc': '购买星球',
'group': 'OutAppPlanet',
'url': 'webapp/index.php?c=OutAppPlanet&a=buy',
'params': [
['net_id', '', '链id'],
['address', '', '钱包地址'],
['num', 0, '数量'],
],
'response': [
_common.RspHead(),
['trans_id', '', '事务id'],
['!params', [''], '合约参数列表'],
]
},
]

View File

@ -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(),
]
},
]

23
doc/PayMethod.py Normal file
View File

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
import _common
class PayMethod(object):
def __init__(self):
self.apis = [
{
'name': 'getPayMethods',
'desc': '获取支付方式',
'group': 'PayMethod',
'url': 'webapp/index.php?c=PayMethod&a=getPayMethods',
'params': [
_common.ReqHead(),
['token_type', 0, "选用币种"],
],
'response': [
_common.RspHead(),
['!pay_methods', [_common.PayMethod()], '支付方式列表'],
]
}
]

View File

@ -5,60 +5,7 @@
* @apiVersion 0.0.1
* @apiSuccessExample {json} Success-Response:
* 所有的协议都可能携带award和property_chgaward用来显示获得的东西,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
*
*
*
*/

View File

@ -13,9 +13,7 @@ class Ranking(object):
'url': 'webapp/index.php?c=Ranking&a=rankingList',
'params': [
_common.ReqHead(),
['mode', 0, ' 1:4v4 2pvp '],
['class', 0, ' 1:总榜 2:日榜 3:周榜 '],
['type', 0, ' 1:场次榜 2:吃鸡榜 3:mvp榜 4:前三名榜 5:击杀榜'],
['type', 0, ' 1:场次榜 2:吃鸡榜 3:mvp榜 4:前三名榜 5:击杀榜']
],
'response': [
_common.RspHead(),

View File

@ -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:未到时间'],
]

View File

@ -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, '修改时间'],
]

View File

@ -1,100 +1,123 @@
# -*- 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, '平台 1android 2ios'],
],
'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': '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': 'buyGoods',
'desc': '购买商品',
'group': 'Shop',
'url': 'webapp/index.php?c=Shop&a=buyGoods',
'params': [
_common.ReqHead(),
['goods_id', '', '商品唯一id'],
['goods_num', 0, '商品数量 如果是宝箱可分为1、10 其他情况的购买为1'],
],
'response': [
_common.RspHead(),
['award', _common.Award(), '奖励信息'],
['property_chg', _common.PropertyChg(), '属性变更'],
]
},
{
'name': 'outappPurchase',
'desc': '发起一个第三方支付(购买钻石)',
'group': 'Shop',
'url': 'webapp/index.php?c=Shop&a=outappPurchase',
'params': [
_common.ReqHead(),
['platform', 0, '平台 1android 2ios'],
['goods_id', '', '商品唯一id'],
['goods_num', 0, '商品数量'],
['network', '', '渠道那边定义的id'],
['crypto', '', '链货币目前只有ceg eth'],
['fiat', '', '货币(目前写死usd)'],
['fiatAmount', '', '价格'],
['payWayCode', '', '支付方式'],
['country', '', '国家'],
],
'response': [
_common.RspHead(),
['order_id', '', '订单id'],
['!params', [''], '透传给洪亮那的参数列表'],
]
},
{
'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, '平台 1android 2ios'],
],
'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:支付失败'],
]
},
{
'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, '免费次数'],
]
}
]

View File

@ -20,10 +20,10 @@ class Sign(object):
]
},
{
'name': 'receiveS',
'name': 'receive',
'desc': '领取签到奖励',
'group': 'Sign',
'surl': 'webapp/index.php?c=Sign&a=receiveS',
'url': 'webapp/index.php?c=Sign&a=receive',
'params': [
_common.ReqHead(),
['sign_id', '', '签到id'],

89
doc/Staking.py Normal file
View File

@ -0,0 +1,89 @@
# -*- coding: utf-8 -*-
import _common
class Staking(object):
def __init__(self):
self.apis = [
{
'name': 'info',
'desc': '获取质押信息',
'group': 'Staking',
'url': 'webapp/index.php?c=Staking&a=info',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
['pool_size', '', '池子数量'],
['total_staking_value', '', '质押总ceg价值,包含利息'],
['daily_staking_value', '', '当天总ceg价值,包含利息'],
['planet', _common.Staking(), '星球质押'],
['badge', _common.Staking(), '徽章质押'],
['cec', _common.Staking(), 'cec质押'],
]
},
{
'name': 'staking',
'desc': '质押中nft列表',
'group': 'Staking',
'url': 'webapp/index.php?c=Staking&a=staking',
'params': [
_common.ReqHead(),
['type', '', '1: planet 2: badge 3:cec'],
],
'response': [
_common.RspHead(),
['type', '', '1: planet 2: badge 3:cec'],
['stacked_quant', '', '当前该类型质押总数'],
['!items', [_common.StakingDetail()], '质押列表'],
]
},
{
'name': 'history',
'desc': '领取历史',
'group': 'Staking',
'url': 'webapp/index.php?c=Staking&a=history',
'params': [
_common.ReqHead(),
['from_time', '', '开始时间(utc时间)'],
['to_time', '', '结束时间(utc时间)'],
],
'response': [
_common.RspHead(),
['!items', [_common.StakingDetail()], '领取历史'],
]
},
{
'name': 'redeemPreview',
'desc': '赎回预览',
'group': 'Staking',
'url': 'webapp/index.php?c=Staking&a=redeemPreview',
'params': [
_common.ReqHead(),
['trans_id', '', 'trans_id'],
],
'response': [
_common.RspHead(),
['cec_rewards', 0, '该nft结算得到的ceg数量'],
]
},
{
'name': 'stakingPreview',
'desc': '质押预览',
'group': 'Staking',
'url': 'webapp/index.php?c=Staking&a=stakingPreview',
'params': [
_common.ReqHead(),
['token_id_list', '', 'token_id多个|分割'],
['contract_address_list', '', 'contract_address多个|分割'],
['net_id', '', 'net_id'],
],
'response': [
_common.RspHead(),
['nft_value', 0, 'nft价值'],
['!items', [_common.StakingPreview()], ''],
]
},
]

186
doc/Team.py Normal file
View File

@ -0,0 +1,186 @@
# -*- 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': 'breakup',
'desc': '解散队伍',
'group': 'Team',
'url': 'webapp/index.php?c=Team&a=breakup',
'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': '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': 'updateTeam',
'desc': '跟新队伍信息',
'group': 'Team',
'url': 'webapp/index.php?c=Team&a=updateTeam',
'params': [
_common.ReqHead(),
['team_uuid', '', '队伍唯一id'],
],
'response': [
_common.RspHead(),
]
},{
'name': 'permission',
'desc': '邀请许可',
'group': 'Team',
'url': 'webapp/index.php?c=Team&a=permission',
'params': [
_common.ReqHead(),
['team_uuid', '', '队伍唯一id'],
['target_id', '', '目标account_id'],
],
'response': [
_common.RspHead(),
]
},{
'name': 'setCustomInfo',
'desc': '设置队伍自定义房间',
'group': 'Team',
'url': 'webapp/index.php?c=Team&a=setCustomInfo',
'params': [
_common.ReqHead(),
['team_uuid', '', '队伍唯一id'],
['custom_room_id', '', '自定义房间的ID'],
['custom_room_state', '', '自定义房间的状态'],
['custom_room_pwd', '', '自定义房间的密码'],
],
'response': [
_common.RspHead(),
]
},
]

View File

@ -69,19 +69,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 +97,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': '点赞',
@ -150,31 +122,14 @@ 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': [
_common.ReqHead(),
['jwt', '', 'jwt数据'],
],
'response': [
@ -209,30 +164,5 @@ class User(object):
_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经验'],
]
},
]

View File

@ -12,9 +12,8 @@ class RspHead(object):
def __init__(self, **kwargs):
self.fields = [
['errcode', 0, '错误码/0 成功1 失败'],
['errcode', 0, '错误码/0 成功1 失败2余额不足'],
['errmsg', '', '错误描述'],
['contributionPoint', '', '贡献点'],
]
for (key, value) in kwargs.items():
for i in range(0, len(self.fields)):
@ -23,24 +22,6 @@ class RspHead(object):
self.fields[i][1] = value
break
JwtHeader = [
'Authorization Bearer {JwtToken}'
]
PassportJwtHeader = [
'Authorization Bearer {JwtToken} passport jwt'
]
JcJwtHeader = [
'Authorization Bearer {JwtToken} 洪亮 jwt(小狐狸)'
]
MaybeJwtHeader = [
'Authorization Bearer {JwtToken} 可选参数'
]
LoginRequired = 'login required'
class Union(object):
def __init__(self, fields):
@ -179,16 +160,6 @@ class UserInfo(object):
['ring_id', 0, '勋章戒指ID'],
['!ring_list', [0], '勋章(戒指)列表'],
['!honor_info', [HonorInfo()], '荣誉信息'],
['account_lucky', 0, '用户幸运值'],
['chest_rate', 0, '宝箱概率'],
]
class UserBattleInfo(object):
def __init__(self):
self.fields = [
['user_info', UserInfo(), '用户信息'],
['hero_info', Hero(), '上阵英雄信息'],
]
class HonorInfo(object):
@ -252,27 +223,27 @@ class UserDetailInfo(object):
['guild_id', '', '工会id'],
['guild_job', 0, '工会职位'],
['guild_name', '', '工会名称'],
['!history_seasons', [UserHisSeason()], '历史打过的赛季列表'],
]
class UserChartInfo(object):
class UserHisSeason(object):
def __init__(self):
self.fields = [
['season_id', 0, '赛季'],
['total_kills', 0, '击杀总数(个人信息)'],
['game_times', 0, '游戏场次(个人信息)'],
['win_times', 0, '胜利场次(个人信息)'],
['kills_avg', 0, '场均击杀'],
['assist_avg', 0, '场均助攻'],
['damage_avg', 0, '场均伤害'],
['recover_avg', 0, '场均恢复'],
['alive_avg', 0, '场均生存(4v4模式下才有)'],
['level_avg', 0, '场均等级(moba模式下才有)'],
['win_rate', 0, '胜率(个人信息,百分比数值整数部分)'],
['max_kills', 0, '最高击杀(游戏信息)'],
['avg_kills', 0, '平均击杀(游戏信息)'],
['max_damage_out', 0, '最高伤害输出(游戏信息)'],
['avg_damage_out', 0, '平均伤害输出(游戏信息)'],
['star_kills', 0, '击败(5纬图-击败, 百分比数值整数部分)'],
['star_damage', 0, '伤害(5纬图-伤害, 百分比数值整数部分)'],
['star_assist', 0, '助攻(5纬图-生存, 百分比数值整数部分)'],
['star_alive', 0, '生存(5纬图-生存, 百分比数值整数部分)'],
['star_recover', 0, '治疗(5纬图-治疗, 百分比数值整数部分)'],
['star_alive', 0, '生存(5纬图-胜利, 百分比数值整数部分,4v4模式下才有)'],
['star_level', 0, '等级(5纬图-胜利, 百分比数值整数部分,moba模式下才有)'],
['star_win', 0, '胜利(5纬图-胜利, 百分比数值整数部分)'],
]
class Hero(object):
@ -286,7 +257,6 @@ class Hero(object):
['hero_tili', 0, '英雄体力'],
['state', 0, '0已购买 1免费GIFT标签'],
['skin_id', 0, '英雄皮肤id'],
['skin_uniid', 0, '英雄皮肤uniid'],
['quality', 0, '品阶'],
['skill_lv1', 0, '主动技能等级'],
['skill_lv2', 0, '被动技能等级'],
@ -303,19 +273,7 @@ class Hero(object):
['offer_reward_state', 0, '是否悬赏中'],
['tags', '', '1Gen状态'],
['!avatarInfo', [AvatarInfo()], '装饰信息'],
['ability', Ability(), '属性'],
['ability_addition', Ability(), '属性-加成'],
['lucky', 0, '幸运值'],
['wealth', 0, '财富值'],
['lucky_base', 0, '英雄自身幸运值'],
['wealth_base', 0, '英雄自身财富值'],
['lucky', 0, '英雄最大幸运值'],
['wealth', 0, '英雄最大财富值'],
['seal_type', 0, '0:未封存 1已封存'],
['unseal_time', 0, '解封时间'],
['valid_time', 0, '最大有效时间'],
['valid_lefttime', 0, '剩余有效时间'],
['is_old', 0, '0:展示红点 1:不用展示'],
]
class LevelingHero(object):
@ -350,16 +308,9 @@ class HeroSkin(object):
def __init__(self):
self.fields = [
['idx', 0, 'uniid'],
['account_id', 0, 'account_id'],
['skin_id', 0, '英雄皮肤id'],
['hero_uniid', 0, '所穿戴的英雄 0=未穿戴'],
['skin_state', 0, ' 0=封装1=解封'],
['used', 0, ' 0=未使用1=使用中'],
['is_old', 0, ' 0:展示红点 1:不用展示'],
['!rand_attr', [Attr()], ' 战斗属性'],
['lucky', 0, '幸运值'],
['wealth', 0, '财富值'],
['is_have', 0, '是否拥有 1拥有 0未拥有'],
['use_state', 0, '选中状态 1选中 0未选中'],
]
class Item(object):
@ -369,7 +320,6 @@ class Item(object):
['item_uniid', 0, '道具唯一id'],
['item_id', 0, '道具id'],
['item_num', 0, '道具数量'],
['is_old', 0, '0:展示红点 1:不用展示'],
['!attr', [Attr()], '属性'],
]
@ -386,8 +336,7 @@ class Award(object):
def __init__(self):
self.fields = [
['!items', [AwardItem()], '奖励物品列表'],
['!heros', [Hero()], '英雄信息'],
['!chips', [Chip()], '芯片信息'],
['!heros', [Hero()], '英雄信息']
]
class PropertyChg(object):
@ -440,17 +389,6 @@ class ItemPriceInfo(object):
['price_info', PriceInfo(), '价格信息'],
]
class Ability(object):
def __init__(self):
self.fields = [
['hp', 0, '血量'],
['attack', 0, '攻击'],
['defence', 0, '防御'],
['block', 0, '格挡'],
['critical', 0, '暴击'],
]
class GoodsInfo(object):
def __init__(self):
@ -476,7 +414,6 @@ class GoodsInfo(object):
['gg_product_id', 0, 'ios商品id'],
['bonus', 0, 'bonus'],
['bonus_num', 0, 'bonus_num'],
['function', 0, '购买方式'],
]
class Goods(object):
@ -923,11 +860,10 @@ class Chip(object):
['chip_grade', 0, '芯片等级'],
['chip_type', 0, '芯片类型1 攻击2 防御3 辅助'],
['state', 0, '0已购买 1免费GIFT标签'],
['inlay_state', 0, '镶嵌状态0 未镶嵌;1 镶嵌了 '],
['supper_state', 0, '是否锁定0 正常;1 锁住 ---弃用字段'],
['inlay_state', 0, '镶嵌状态0 未镶嵌;1 镶嵌了 ---弃用字段'],
['!rand_attr', [ChipAttr()], '属性'],
['tags', '', '1Gen状态'],
['quality', '', '品阶'],
['is_old', '', '0:展示红点 1:不用展示'],
]
class ChipPro(object):
@ -1032,13 +968,6 @@ class BattleItemReward(object):
['item_num', 0, '道具数量'],
]
class BattleItem(object):
def __init__(self):
self.fields = [
['item_id', 0, '道具id'],
['use_num', 0, '道具使用数量'],
]
class BattleRankScore(object):
@ -1121,7 +1050,17 @@ class Emoji(object):
self.fields = [
['item_id', 0, 'item_id'],
['state', 0, '1:使用 0未使用'],
['left_time', 0, '剩余时间'],
]
class ChipPageList(object):
def __init__(self):
self.fields = [
['idx', 0, 'idx'],
['account_id', 0, 'account_id'],
['page_id', 0, '页id'],
['page_name', '', '页名'],
['createtime', 0, '创建时间'],
]
class ChipPage(object):
@ -1129,7 +1068,8 @@ class ChipPage(object):
def __init__(self):
self.fields = [
['idx', 0, 'idx'],
['hero_uniid', 0, '英雄唯一id'],
['page_id', 0, '页id'],
['page_name', '', '页名'],
['!data', [ChipPageSlot()], '卡槽信息'],
['!attr', [Attr()], '属性信息'],
]
@ -1139,11 +1079,8 @@ class ChipPageSlot(object):
def __init__(self):
self.fields = [
['slot_id', 0, '卡槽id'],
['slot_type', 0, '卡槽类型和芯片类型对应1 攻击2 防御3 辅助'],
['state', 0, '0未解锁 1已解锁'],
['chip_id', '', '芯片唯一id'],
['item_id', '', '芯片itemId'],
['quality', '', '芯片品阶'],
['chip_id', '', '芯片idx'],
]
class HeroPreset(object):
@ -1168,14 +1105,12 @@ class TeamReportMember(object):
['head_frame', 0, '头像框'],
['sex', 0, '性别'],
['dead', 0, '是否已死亡'],
['dead_times', 0, '死亡次数'],
['is_mvp', 0, '是否mvp'],
['hero_id', 0, '英雄id'],
['hero_uniid', 0, '英雄uniid'],
['hero_quality', 0, '英雄quality'],
['game_time', 0, '游戏截止时间(utc时间)'],
['game_duration', 0, '游戏时长(单位秒)'],
['game_time', 0, '游戏时间'],
['alive_time', 0, '存活时间'],
['ranked', 0, '排名'],
['kills', 0, '击杀数'],
@ -1198,14 +1133,8 @@ class TeamReportMember(object):
['weapons_slot', '', '武器信息 weapon_id:use_times|'],
['heros', '', '武器信息 hero_id:skill_lv:weapon_lv|'],
['is_run_away', 0, '是否逃跑(在没结算前主动退出也算逃跑还)'],
['skin_id', 0, '皮肤id'],
['move_distance', 0, '行走距离'],
['full_level_idx', 0, '第几个满级索引(0:未满级 1:第一个 2第二个等等)'],
['hero_lv', 0, '游戏内英雄等级'],
['pvp_kill', 0, 'pvp击杀敌人数'],
['pvp_damage', 0, 'pvp伤害总量'],
['pvp_damage', 0, 'pvp上海总量'],
['pvp_assist', 0, 'pvp助攻'],
['pvp_survia_time', 0, 'pvp存活时间(毫秒)'],
['pvp_recover', 0, 'pvp治疗总量'],
@ -1222,7 +1151,6 @@ class TeamReportMember(object):
['pve_max_wave', 0, 'pve最大波次'],
['pve_boss_killed', 0, 'pve副本boss是否被击杀'],
['pve_rank_score', 0, 'pve积分'],
['!battle_items', [_common.BattleItem()], '战斗道具'],
]
class TeamReportTeam(object):
@ -1274,7 +1202,6 @@ class BattleSettlementMembersInfo(object):
['hero_uniid', 0, '英雄uniid'],
['hero_id', 0, '英雄itemId'],
['dead', 0, '是否已死亡'],
['dead_times', 0, '死亡次数'],
['is_mvp', 0, '是否mvp'],
['old_rank', 0, '老段位'],
['new_rank', 0, '新段位'],
@ -1296,10 +1223,16 @@ class BattleSettlementMembersInfo(object):
['pve_wave', 0, 'pve波次'],
['pve_max_wave', 0, 'pve总波次'],
['pve_boss_killed', 0, 'pve副本boos是否被击杀'],
['battle_score', 0, '表现分'],
['!reward', [BattleItemReward()], 'reward'],
['reward', BattleReward(), 'reward'],
]
class BattleReward(object):
def __init__(self):
self.fields = [
['hero', BattleCegReward(), '英雄奖励'],
['!items', [BattleItemReward()], '碎片奖励'],
]
class Reward(object):
@ -1407,21 +1340,6 @@ class MallGoods(object):
['modify_countdown', 0, '可修改价格倒计时:-1不可修改价格'],
]
class InGameMallGoods(object):
def __init__(self):
self.fields = [
['seller', '', '出售方账号'],
['seller_address', '', '出售方钱包地址'],
['goods_uniid', '', '商品唯一id'],
['item_id', '', '商品道具id'],
['item_num', '', '道具数量'],
['price', '', '出售价格'],
['status', '', '0:出售中 1:已购买 2:已取消'],
['createtime', 0, '上架时间'],
['last_modify_price_time', 0, '修改时间(更新价格等)'],
]
class ComputingPowerCurr(object):
def __init__(self):
@ -1457,7 +1375,6 @@ class ComputingPower(object):
['listing_state', 0, 'listing状态 0:之前 1:之后'],
['owned_cec', 0, '拥有的cec数量'],
['owned_total_hash_rate', 0, '用户总科技值'],
['owned_total_crystal', 0, '用户总晶体数'],
]
class CrystalUI(object):
@ -1610,358 +1527,3 @@ class BattleTeam(object):
['team_uuid','','队伍唯一id'],
['!members', BattleData(), '成员数据'],
]
class MatchMember(object):
def __init__(self):
self.fields = [
['account_id', '', '账号id'],
['address', '', 'openid'],
['name', '', '用户名字'],
['hero_uniId', 0, 'hero uniid'],
['hero_id', 0, 'hero itemId'],
['hero_skin', 0, '英雄皮肤 itemId'],
['head_id', 0, '头像id'],
['level', 0, '等级'],
['exp', 0, '经验'],
['rank', 0, '段位'],
['pve_instance_id', 0, 'pve难度id'],
['parachute', 0, '降落伞id'],
['presetInfo', HeroPreset(), '备战信息'],
['game_times', 0, '游戏次数'],
['win_times', 0, '胜利次数'],
['kills', 0, '击杀数'],
['is_leader', 0, '是否队长'],
['is_ready', 0, '是否准备'],
['permission', 0, '邀请许可'],
['createtime', 0, '账号创建时间'],
]
class MatchTeam(object):
def __init__(self):
self.fields = [
['team_uuid','','队伍唯一id'],
['!members', BattleData(), '成员数据'],
]
class MatchInfo(object):
def __init__(self):
self.fields = [
['state',0,'状态 0:匹配中 1:匹配成功'],
['!team_list', MatchTeam(), '队伍列表(客户端自行判断所属哪个队伍)'],
['join_msg', SpecJoin(), '匹配成功后改字段才有意义传给CMJoin里的参数(team_uuid、payload)'],
]
class SpecJoin(object):
def __init__(self):
self.fields = [
['team_uuid', '', '自定义房间、moba房间会修改玩家原始team_uuid所以用这个新的team_uuid替换之前CMJoin里的team_uuid'],
['payload', '', '透传数据'],
]
class MFRoomReportTeam(object):
def __init__(self):
self.fields = [
['battle_uuid', '', 'battle_uuid'],
['team_id', 0, '队伍id'],
['victory', 0, '是否胜利(pvp:吃鸡 pve通关 moba:胜利)'],
['pvp_settelement_type', 0, 'pvp结算类型 0个人 1:组队'],
['pvp_settelement_color', 0, ''],
['pvp_team_rank', 0, 'pvp队伍排名'],
['pvp_total_human_num', 0, 'pvp房间总人数'],
['pvp_alive_human_num', 0, 'pvp房间剩余存活数'],
['pvp_total_team_num', 0, 'pvp战斗队伍总数'],
['pvp_match_mode', 0, '0: pvp 1排位赛'],
['pvp_team_kills', 0, 'pvp队伍击杀数'],
['pve_settelement_type', 0, 'pve结算类型 0个人 1:组队'],
['pve_instance_id', 0, 'pve副本id'],
['pve_wave', 0, 'pve波次'],
['pve_max_wave', 0, 'pve最大波次'],
['!members', [TeamReportMember()], '成员数据'],
]
class MFAttachment(object):
def __init__(self):
self.fields = [
['itemid', 0, '道具id'],
['itemnum', 0, '道具数量'],
]
class MFGameMail(object):
def __init__(self):
self.fields = [
['mailid', '', '邮件id'],
['subject', '', '邮件主题'],
['content', '', '邮件正文'],
['flags', 0, '邮件标志 1<<0:已读'],
['sendtime', 0, '发送时间'],
['expiretime', 0, '过期时间'],
['!attachments', [MFAttachment()], ''],
]
class MFTransactionRequest(object):
def __init__(self):
self.fields = [
['to', '', '调用的目标合约地址'],
['data', '', '包含报文相关的字节字符串'],
]
class NftHomeMeta(object):
def __init__(self):
self.fields = [
['name', '', 'nft名字'],
['symbol', '', 'symbol'],
['description', '', 'nft描述'],
['image', '', 'nft图片地址'],
['external_link', '', 'nft链接'],
]
class NftAttribute(object):
def __init__(self):
self.fields = [
['trait_type', '', '属性名'],
['value', '', '属性值'],
]
class NftHeroMeta(object):
def __init__(self):
self.fields = [
['name', '', 'nft名字'],
['description', '', 'nft描述'],
['image', '', 'nft图片地址'],
['!attrigutes', [NftAttribute()], 'nft属性'],
]
class NftGoldBullionMeta(object):
def __init__(self):
self.fields = [
['name', '', 'nft名字'],
['description', '', 'nft描述'],
['image', '', 'nft图片地址'],
['!attrigutes', [NftAttribute()], 'nft属性'],
]
class StreamPage(object):
def __init__(self):
self.fields = [
['next_cursor', '', '下一页游标'],
['previous_cursor', '', '前一页游标'],
['remaining', 0, '是否有更多数据'],
]
class NftHeroDetailNew(object):
def __init__(self):
self.fields = [
['quality', 0, '星级'],
['max_mining_days', 0, '打金天数(最大)'],
['wealth', 0, '财富值'],
['lucky', 0, '幸运值'],
['hp', 0, '血量'],
['atk', 0, '攻击'],
['def', 0, '攻击'],
['block', 0, '格挡'],
['crit', 0, '暴击'],
['chip_slots', 0, '芯片槽数'],
['combat_ability_1', '', '战斗能力1'],
['combat_ability_2', '', '战斗能力2'],
]
class NftGoldBullionDetail(object):
def __init__(self):
self.fields = [
['gold_coins', 0, '金币数'],
]
class NftInfo(object):
def __init__(self):
self.fields = [
['net_id', 0, '链id'],
['contract_address', 0, '合约地址'],
['token_id', '', 'token id'],
['owner_address', '', '所有者地址'],
['meta_url', '', '元数据url'],
['name', '', 'nft名字'],
['item_id', 0, '道具id'],
['type', '', 'nft类型 1:英雄 11:金砖'],
['image', '', 'nft图片地址'],
['on_sale', 0, '是否出售中'],
['detail', Union([
[NftHeroDetailNew(), '英雄'],
[NftGoldBullionDetail(), '英雄'],
]), 'nft详细信息'],
]
class MarketGoods(object):
def __init__(self):
self.fields = [
['event', '', 'json格式订单webhooks事件信息imtbl_zkevm_order_updated https://docs.immutable.com/docs/zkEVM/products/blockchain-data/webhooks/webhooks-orders'],
['nft', NftInfo(), 'nft信息'],
['in_shopcart', 0, '商品是否已在购物车里'],
]
class SaleGoods(object):
def __init__(self):
self.fields = [
['event', '', 'json格式订单webhooks事件信息imtbl_zkevm_activity_sale https://docs.immutable.com/docs/zkEVM/products/blockchain-data/webhooks/webhooks-orders'],
['nft', NftInfo(), 'nft信息']
]
class AssetNftInfo(object):
def __init__(self):
self.fields = [
['net_id', 0, '链id'],
['contract_address', 0, '合约地址'],
['token_id', '', 'token id'],
['owner_address', '', '所有者地址'],
['meta_url', '', '元数据url'],
['name', '', 'nft名字'],
['item_id', 0, '道具id'],
['on_sale', 0, '是否出售中'],
['type', '', 'nft类型 1:英雄 11:金砖'],
['image', '', 'nft图片地址'],
['detail', Union([
[NftHeroDetailNew(), '英雄'],
[NftGoldBullionDetail(), '英雄'],
]), 'nft详细信息'],
]
class ChainActivity(object):
def __init__(self):
self.fields = [
['nft', NftInfo(), 'nft信息'],
['type', '', '1:mint 2:lock 3:unlock'],
['from', '', 'from'],
['to', '', 'to'],
['date', '', '事件发生时间'],
]
class RechargeCurrency(object):
def __init__(self):
self.fields = [
['name', '', '货币名'],
['address', '', '货币地址'],
]
class RechargeGoods(object):
def __init__(self):
self.fields = [
['goods_id', '', '商品id(购买时用)'],
['diamond', 0, '充值所得钻石'],
['price', '', '价格'],
['present_diamond', 0, '赠送钻石'],
['max_buy_times', 0, '充值次数上限'],
['can_email_buy', 0, '是否支持邮件购买'],
['!currency_list', [RechargeCurrency()], '货币列表'],
]
class RechargeHistory(object):
def __init__(self):
self.fields = [
['order_id', '', '订单id'],
['txhash', '', 'txhash'],
['net_id', 0, '链id'],
['currency', '', '货币地址'],
['amount', '', '货币数'],
['createtime', 0, '成交时间'],
]
class BigwheelGrid(object):
def __init__(self):
self.fields = [
['grid_id', 0, '格子id(Bigwheel表里的id字段)'],
['grid_state', 0, '0:未抽 1:已抽到且商品属于你 2:已抽到且商品还未属于你(需要购买)'],
['item_id', 0, '道具id(state>0时有效)'],
['item_num', 0, '道具数量(state>0时有效)'],
['buy_price', 0, '购买价格(state=2时有效)'],
]
class BigwheelInfo(object):
def __init__(self):
self.fields = [
['drawed_times', 0, '已抽次数'],
['total_times', 0, '总次数'],
['single_src_cost', 0, '单次抽奖消耗(钻石)-原价'],
['double_src_cost', 0, '双次抽奖消耗(钻石)-原价'],
['single_cost', 0, '单次抽奖消耗(钻石)'],
['double_cost', 0, '双次抽奖消耗(钻石)'],
['!items1', [BigwheelGrid()], '档位1'],
['!items2', [BigwheelGrid()], '档位2'],
]
class CecContributionActivity(object):
def __init__(self):
self.fields = [
['my_contribution', 0, '我的贡献点数'],
['global_contribution', 0, '全服贡献点数'],
['total_cec_pool', 0, 'cec总奖池'],
['my_expected_cec', 0, '我预计可得cec'],
]
class VipInfo(object):
def __init__(self):
self.fields = [
['bind_passport_address', 0, '绑定的passport地址'],
['bind_email', 0, '绑定的email地址'],
]
class VipLevelInfo(object):
def __init__(self):
self.fields = [
['level', 0, '当前等级'],
['curpoint', 0, '当前点数'],
['target', 0, '升级所需点数,如为-1则已是最高等级'],
]
class HashRateGoods(object):
def __init__(self):
self.fields = [
['goods_id', 0, '商品id'],
['item_id', 0, '道具id'],
['item_num', 0, '道具数量'],
['purchased_num', 0, '已购买数量'],
['max_num', 0, '最大数量(-1不限购)'],
['count_down', 0, '倒计时(单位秒,只有已售罄才有效)'],
]
class WheelUser(object):
def __init__(self):
self.fields = [
['name', '', '用户名'],
['avatar', '', '头像'],
['score', '', '积分'],
['hourly_earnings', 0, '每小时收益'],
['dice', 0, '骰子数'],
]

View File

@ -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

View File

@ -1 +0,0 @@
/etc/php/7.4/mods-available/mysqlnd.ini

View File

@ -1 +0,0 @@
/etc/php/7.4/mods-available/opcache.ini

View File

@ -1 +0,0 @@
/etc/php/7.4/mods-available/pdo.ini

View File

@ -1 +0,0 @@
/etc/php/7.4/mods-available/calendar.ini

View File

@ -1 +0,0 @@
/etc/php/7.4/mods-available/ctype.ini

View File

@ -1 +0,0 @@
/etc/php/7.4/mods-available/exif.ini

View File

@ -1 +0,0 @@
/etc/php/7.4/mods-available/ffi.ini

View File

@ -1 +0,0 @@
/etc/php/7.4/mods-available/fileinfo.ini

View File

@ -1 +0,0 @@
/etc/php/7.4/mods-available/ftp.ini

View File

@ -1 +0,0 @@
/etc/php/7.4/mods-available/gettext.ini

View File

@ -1 +0,0 @@
/etc/php/7.4/mods-available/iconv.ini

View File

@ -1 +0,0 @@
/etc/php/7.4/mods-available/igbinary.ini

View File

@ -1 +0,0 @@
/etc/php/7.4/mods-available/json.ini

View File

@ -1 +0,0 @@
/etc/php/7.4/mods-available/mbstring.ini

View File

@ -1 +0,0 @@
/etc/php/7.4/mods-available/mysqli.ini

View File

@ -1 +0,0 @@
/etc/php/7.4/mods-available/pdo_mysql.ini

View File

@ -1 +0,0 @@
/etc/php/7.4/mods-available/phar.ini

View File

@ -1 +0,0 @@
/etc/php/7.4/mods-available/posix.ini

View File

@ -1 +0,0 @@
/etc/php/7.4/mods-available/readline.ini

View File

@ -1 +0,0 @@
/etc/php/7.4/mods-available/redis.ini

Some files were not shown because too many files have changed in this diff Show More