From 801f1bc6ad57ccd692ff60fce64369a5a65c3b1d Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 23 May 2022 20:07:12 +0800 Subject: [PATCH] 1 --- webapp/controller/UserController.class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/webapp/controller/UserController.class.php b/webapp/controller/UserController.class.php index 4209a9de..2cebd316 100644 --- a/webapp/controller/UserController.class.php +++ b/webapp/controller/UserController.class.php @@ -383,8 +383,10 @@ class UserController extends BaseAuthedController { } $channel = phpcommon\extractChannel($userDb['account_id']); if ($channel != BC_CHANNEL) { - $this->_rspErr(1, 'not found'); - return; + if (SERVER_ENV != _ONLINE) { + $this->_rspErr(1, 'not found'); + return; + } } $this->_rspData(array( 'info' => User::info($userDb)