From 59ad6ba2e9267748a683294d0e00bacd4ea2af31 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 9 Aug 2023 14:27:54 +0800 Subject: [PATCH] 1 --- doc/ServerSwitch.py | 2 +- webapp/controller/ServerSwitchController.class.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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 ));