This commit is contained in:
aozhiwei 2024-07-02 14:57:49 +08:00
parent 992db7830c
commit b26bbbb60c
2 changed files with 35 additions and 5 deletions

View File

@ -82,7 +82,7 @@ class AALogin(object):
{ {
'method': 'POST', 'method': 'POST',
'name': 'auth2', 'name': 'auth2',
'desc': '登录验证', 'desc': '登录验证(errcode == 505 需要验证码)',
'group': '!AALogin', 'group': '!AALogin',
'url': 'https://login-test.kingsome.cn/webapp/index.php?c=Login&a=auth2', 'url': 'https://login-test.kingsome.cn/webapp/index.php?c=Login&a=auth2',
'is_json_params': True, 'is_json_params': True,
@ -97,6 +97,36 @@ class AALogin(object):
['server_time', 0, '回合制专用字段-服务器当前utc时间'], ['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', 'name': 'getSwitch',
'desc': '获取开关', 'desc': '获取开关',

View File

@ -13,10 +13,10 @@ class ToolsController extends BaseController {
public function _handlePre() public function _handlePre()
{ {
parent::_handlePre(); parent::_handlePre();
// if (SERVER_ENV == _ONLINE) { if (SERVER_ENV == _ONLINE) {
// die("can't create ToolsController"); die("can't create ToolsController");
// return; return;
// } }
} }
public function test() public function test()