1
This commit is contained in:
parent
741b4327f7
commit
cbb86318e5
@ -40,29 +40,11 @@ class UserController extends BaseAuthedController {
|
|||||||
myself()->_getSessionId());
|
myself()->_getSessionId());
|
||||||
//$user_name = $_REQUEST['name'];
|
//$user_name = $_REQUEST['name'];
|
||||||
//$avatar_url = $_REQUEST['avatar_url'];
|
//$avatar_url = $_REQUEST['avatar_url'];
|
||||||
|
|
||||||
$userName = 'guest';
|
$userName = 'guest';
|
||||||
$avatarUrl = '18003';
|
$avatarUrl = '18003';
|
||||||
|
|
||||||
$userInfo = $this->_safeGetOrmUserInfo();
|
$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) {
|
if (!$userInfo) {
|
||||||
$this->createNewUserV2($userName);
|
$this->createNewUserV2($userName);
|
||||||
$this->_addFreeItem(); //测试需要,上线要删除
|
|
||||||
$this->addFragmentBox(); //测试需要,上线要删除
|
|
||||||
// $this->addChip(); //测试需要,上线要删除
|
|
||||||
$userInfo = $this->_getOrmUserInfo();
|
$userInfo = $this->_getOrmUserInfo();
|
||||||
$this->_setV(TN_RANK_STATUS, 0, 1);
|
$this->_setV(TN_RANK_STATUS, 0, 1);
|
||||||
}
|
}
|
||||||
@ -73,7 +55,6 @@ class UserController extends BaseAuthedController {
|
|||||||
$this->_updateUserInfo(array(
|
$this->_updateUserInfo(array(
|
||||||
'last_login_time'=>myself()->_getNowTime(),
|
'last_login_time'=>myself()->_getNowTime(),
|
||||||
));
|
));
|
||||||
// }
|
|
||||||
$this->updateLastSeason($userInfo);
|
$this->updateLastSeason($userInfo);
|
||||||
$this->_rspData(array(
|
$this->_rspData(array(
|
||||||
'info' => User::show($userInfo),
|
'info' => User::show($userInfo),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user