From cbb86318e5703e083744e42b4752ee548dcc23cc Mon Sep 17 00:00:00 2001 From: hujiabin Date: Wed, 23 Nov 2022 16:17:06 +0800 Subject: [PATCH] 1 --- webapp/controller/UserController.class.php | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/webapp/controller/UserController.class.php b/webapp/controller/UserController.class.php index 2f66d211..339d55d5 100644 --- a/webapp/controller/UserController.class.php +++ b/webapp/controller/UserController.class.php @@ -40,29 +40,11 @@ class UserController extends BaseAuthedController { myself()->_getSessionId()); //$user_name = $_REQUEST['name']; //$avatar_url = $_REQUEST['avatar_url']; - $userName = 'guest'; $avatarUrl = '18003'; - $userInfo = $this->_safeGetOrmUserInfo(); -// if (SERVER_ENV == _ONLINE) { -// if (!$userInfo) { -// $this->createNewUser($userName, $avatarUrl); -// $this->addChip(); //测试数据,上线要删除 -// $this->addFragmentBox(); //测试数据,上线要删除 -// $userInfo = $this->_getOrmUserInfo(); -// $this->_setV(TN_RANK_STATUS, 0, 1); -// } -// if (!$this->loginCheck($userInfo)) { -// $userInfo = $this->_getOrmUserInfo(); -// } -// }else{ - //测试服 if (!$userInfo) { $this->createNewUserV2($userName); - $this->_addFreeItem(); //测试需要,上线要删除 - $this->addFragmentBox(); //测试需要,上线要删除 -// $this->addChip(); //测试需要,上线要删除 $userInfo = $this->_getOrmUserInfo(); $this->_setV(TN_RANK_STATUS, 0, 1); } @@ -73,7 +55,6 @@ class UserController extends BaseAuthedController { $this->_updateUserInfo(array( 'last_login_time'=>myself()->_getNowTime(), )); -// } $this->updateLastSeason($userInfo); $this->_rspData(array( 'info' => User::show($userInfo),