This commit is contained in:
aozhiwei 2022-06-07 18:50:17 +08:00
parent 477cfbe008
commit 4c6e1fa3d4
2 changed files with 35 additions and 0 deletions

22
doc/ServerSwitch.py Normal file
View File

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
import _common
class ServerSwitch(object):
def __init__(self):
self.apis = [
{
'name': 'getSwitch',
'desc': '获取服务器功能开关',
'group': 'ServerSwitch',
'url': 'webapp/index.php?c=&a=ServerSwitch=getSwitch',
'params': [
_common.ReqHead(),
],
'response': [
_common.RspHead(),
['!open_list', [0], '开放的功能列表 1:悬赏任务'],
]
},
]

View File

@ -0,0 +1,13 @@
<?php
class ServerSwitchController extends BaseAuthedController {
public function getSwitch()
{
$openList = array();
myself()->_rspData(array(
'open_list' => $openList
));
}
}