diff --git a/doc/ServerSwitch.py b/doc/ServerSwitch.py index a0ac01d8..b1eff6f2 100644 --- a/doc/ServerSwitch.py +++ b/doc/ServerSwitch.py @@ -16,7 +16,7 @@ class ServerSwitch(object): ], 'response': [ _common.RspHead(), - ['!open_list', [0], '开放的功能列表 1:悬赏任务'], + ['!open_list', [0], '开放的功能列表 1:悬赏任务 3:禁用商城、market所有和这次修改相关的'], ] }, ] diff --git a/webapp/controller/ServerSwitchController.class.php b/webapp/controller/ServerSwitchController.class.php index 2560509d..b924eab2 100644 --- a/webapp/controller/ServerSwitchController.class.php +++ b/webapp/controller/ServerSwitchController.class.php @@ -11,6 +11,9 @@ class ServerSwitchController extends BaseAuthedController { if (myself()->_getNowTime() > 1655337600) { array_push($openList, 2); } + if (SERVER_ENV == _ONLINE) { + array_push($openList, 3); + } myself()->_rspData(array( 'open_list' => $openList ));