From 265a0ea9b5b37c4fa215edfe16a5fd57ecc37b6f Mon Sep 17 00:00:00 2001 From: hujiabin Date: Wed, 19 Oct 2022 01:04:59 +0800 Subject: [PATCH] 1 --- webapp/controller/UserController.class.php | 38 +++++++++++----------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/webapp/controller/UserController.class.php b/webapp/controller/UserController.class.php index 58e17685..78dbadfc 100644 --- a/webapp/controller/UserController.class.php +++ b/webapp/controller/UserController.class.php @@ -42,23 +42,23 @@ class UserController extends BaseAuthedController { $userInfo = $this->_safeGetOrmUserInfo(); - if (SERVER_ENV == _ONLINE) { - //测试服 - if (!$userInfo) { - $this->createNewUserV2($userName); - $this->addChip(); //测试需要,上线要删除 - $this->addFragmentBox(); //测试需要,上线要删除 - $userInfo = $this->_getOrmUserInfo(); - $this->_setV(TN_RANK_STATUS, 0, 1); - } - //elo 衰减 - $this->checkElo($userInfo); - $userInfo = $this->_getOrmUserInfo(); - //跟新登录时间 - $this->_updateUserInfo(array( - 'last_login_time'=>myself()->_getNowTime(), - )); - }else{ +// if (SERVER_ENV == _ONLINE) { +// //测试服 +// if (!$userInfo) { +// $this->createNewUserV2($userName); +// $this->addChip(); //测试需要,上线要删除 +// $this->addFragmentBox(); //测试需要,上线要删除 +// $userInfo = $this->_getOrmUserInfo(); +// $this->_setV(TN_RANK_STATUS, 0, 1); +// } +// //elo 衰减 +// $this->checkElo($userInfo); +// $userInfo = $this->_getOrmUserInfo(); +// //跟新登录时间 +// $this->_updateUserInfo(array( +// 'last_login_time'=>myself()->_getNowTime(), +// )); +// }else{ if (!$userInfo) { $this->createNewUser($userName, $avatarUrl); $this->addChip(); //测试需要,上线要删除 @@ -69,8 +69,8 @@ class UserController extends BaseAuthedController { if (!$this->loginCheck($userInfo)) { $userInfo = $this->_getOrmUserInfo(); } - } - $this->updateLastSeason($userInfo); +// } +// $this->updateLastSeason($userInfo); $this->_rspData(array( 'info' => User::show($userInfo) ));