diff --git a/doc/ServerSwitch.py b/doc/ServerSwitch.py new file mode 100644 index 00000000..a0ac01d8 --- /dev/null +++ b/doc/ServerSwitch.py @@ -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:悬赏任务'], + ] + }, + ] diff --git a/webapp/controller/ServerSwitchController.class.php b/webapp/controller/ServerSwitchController.class.php new file mode 100644 index 00000000..3dad7b90 --- /dev/null +++ b/webapp/controller/ServerSwitchController.class.php @@ -0,0 +1,13 @@ +_rspData(array( + 'open_list' => $openList + )); + } + +}