1
This commit is contained in:
parent
477cfbe008
commit
4c6e1fa3d4
22
doc/ServerSwitch.py
Normal file
22
doc/ServerSwitch.py
Normal 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:悬赏任务'],
|
||||||
|
]
|
||||||
|
},
|
||||||
|
]
|
13
webapp/controller/ServerSwitchController.class.php
Normal file
13
webapp/controller/ServerSwitchController.class.php
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
class ServerSwitchController extends BaseAuthedController {
|
||||||
|
|
||||||
|
public function getSwitch()
|
||||||
|
{
|
||||||
|
$openList = array();
|
||||||
|
myself()->_rspData(array(
|
||||||
|
'open_list' => $openList
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user