1
This commit is contained in:
parent
265a0ea9b5
commit
bc6e664d09
@ -142,7 +142,7 @@ class User(object):
|
|||||||
'url': 'webapp/index.php?c=User&a=selectFreeItem',
|
'url': 'webapp/index.php?c=User&a=selectFreeItem',
|
||||||
'params': [
|
'params': [
|
||||||
_common.ReqHead(),
|
_common.ReqHead(),
|
||||||
['hero_id', '', '英雄 item id']
|
['hero_id', '', '英雄 item id'],
|
||||||
['gun_id', '', '枪械 item id']
|
['gun_id', '', '枪械 item id']
|
||||||
],
|
],
|
||||||
'response': [
|
'response': [
|
||||||
|
@ -42,23 +42,23 @@ class UserController extends BaseAuthedController {
|
|||||||
|
|
||||||
$userInfo = $this->_safeGetOrmUserInfo();
|
$userInfo = $this->_safeGetOrmUserInfo();
|
||||||
|
|
||||||
// if (SERVER_ENV == _ONLINE) {
|
if (SERVER_ENV == _ONLINE) {
|
||||||
// //测试服
|
//测试服
|
||||||
// if (!$userInfo) {
|
if (!$userInfo) {
|
||||||
// $this->createNewUserV2($userName);
|
$this->createNewUserV2($userName);
|
||||||
// $this->addChip(); //测试需要,上线要删除
|
$this->addChip(); //测试需要,上线要删除
|
||||||
// $this->addFragmentBox(); //测试需要,上线要删除
|
$this->addFragmentBox(); //测试需要,上线要删除
|
||||||
// $userInfo = $this->_getOrmUserInfo();
|
$userInfo = $this->_getOrmUserInfo();
|
||||||
// $this->_setV(TN_RANK_STATUS, 0, 1);
|
$this->_setV(TN_RANK_STATUS, 0, 1);
|
||||||
// }
|
}
|
||||||
// //elo 衰减
|
//elo 衰减
|
||||||
// $this->checkElo($userInfo);
|
$this->checkElo($userInfo);
|
||||||
// $userInfo = $this->_getOrmUserInfo();
|
$userInfo = $this->_getOrmUserInfo();
|
||||||
// //跟新登录时间
|
//跟新登录时间
|
||||||
// $this->_updateUserInfo(array(
|
$this->_updateUserInfo(array(
|
||||||
// 'last_login_time'=>myself()->_getNowTime(),
|
'last_login_time'=>myself()->_getNowTime(),
|
||||||
// ));
|
));
|
||||||
// }else{
|
}else{
|
||||||
if (!$userInfo) {
|
if (!$userInfo) {
|
||||||
$this->createNewUser($userName, $avatarUrl);
|
$this->createNewUser($userName, $avatarUrl);
|
||||||
$this->addChip(); //测试需要,上线要删除
|
$this->addChip(); //测试需要,上线要删除
|
||||||
@ -69,8 +69,8 @@ class UserController extends BaseAuthedController {
|
|||||||
if (!$this->loginCheck($userInfo)) {
|
if (!$this->loginCheck($userInfo)) {
|
||||||
$userInfo = $this->_getOrmUserInfo();
|
$userInfo = $this->_getOrmUserInfo();
|
||||||
}
|
}
|
||||||
// }
|
}
|
||||||
// $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