This commit is contained in:
aozhiwei 2024-05-14 17:42:33 +08:00
parent 65705b6ded
commit 29d1b12132

View File

@ -5,30 +5,113 @@ class AALogin(object):
def __init__(self):
self.apis = [
{
'name': 'login',
'desc': '登录',
'name': 'getNonce',
'desc': '获取Nonce',
'group': '!AALogin',
'url': 'https://login-test.kingsome.cn/webapp/index.php?c=User&a=login',
'url': 'https://login-test.kingsome.cn/webapp/index.php?c=Login&a=getNonce',
'params': [
_common.ReqHead(),
['gameid', '', '游戏id'],
['account', '', '钱包账号(oxxxx)'],
],
'response': [
_common.RspHead(),
['info',_common.UserInfo(), '用户信息']
['nonce', '', 'nonce']
]
},
{
'name': 'nameExists',
'desc': '名字是否已被用',
'name': 'getAnnouncement',
'desc': '获得公告内容',
'group': '!AALogin',
'url': 'https://login-test.kingsome.cn/webapp/index.php?c=User&a=nameExists',
'url': 'https://login-test.kingsome.cn/webapp/index.php?c=Annc&a=getAnnouncement',
'params': [
_common.ReqHead(),
['name', 0, '名字'],
['name_sign', '', '名字签名'],
['gameid', '', '游戏id'],
['channel', '', '渠道编号'],
],
'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': [
_common.ReqHead(),
['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只有测试服才有该字段!!!'],
]
},
{
'name': 'getSwitch',
'desc': '获取开关',
'group': '!AALogin',
'url': 'https://login-test.kingsome.cn/webapp/index.php?c=ServerSwitch&a=getSwitch',
'params': [
_common.ReqHead(),
['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': [
_common.ReqHead(),
['gameid', '', '游戏id'],
],
'response': [
_common.RspHead(),
['!white_list',[
['id', '', '邮件地址'],
], '白名单']
]
},
]