This commit is contained in:
aozhiwei 2021-11-26 14:11:33 +08:00
parent a0a3e437a5
commit 88c64e6700
4 changed files with 22 additions and 22 deletions

View File

@ -244,7 +244,7 @@ class BaseAuthedController extends BaseController {
), ),
array( array(
'item_num' => function () use($item) { return "item_num + {$item['item_num']}";}, 'item_num' => function () use($item) { return "item_num + {$item['item_num']}";},
'modifytime' => $this->getNowTime() 'modifytime' => $this->_getNowTime()
), ),
array( array(
'accountid' => $this->getAccountId(), 'accountid' => $this->getAccountId(),
@ -253,8 +253,8 @@ class BaseAuthedController extends BaseController {
'status' => 1, 'status' => 1,
'active_time' => 0, 'active_time' => 0,
'item_num' => $item['item_num'], 'item_num' => $item['item_num'],
'createtime' => $this->getNowTime(), 'createtime' => $this->_getNowTime(),
'modifytime' => $this->getNowTime() 'modifytime' => $this->_getNowTime()
) )
); );
} }
@ -285,7 +285,7 @@ class BaseAuthedController extends BaseController {
'num' => function () use($item) { 'num' => function () use($item) {
return "CASE WHEN num < {$item['item_num']} THEN 0 ELSE num - {$item['item_num']} END"; return "CASE WHEN num < {$item['item_num']} THEN 0 ELSE num - {$item['item_num']} END";
}, },
'modify_time' => $this->getNowTime() 'modify_time' => $this->_getNowTime()
) )
); );
} }

View File

@ -33,7 +33,7 @@ class BaseController {
public function _getTodayRemainSeconds() public function _getTodayRemainSeconds()
{ {
return max(0, $this->getNowDaySeconds() + 3600 * 24 - $this->getNowTime()); return max(0, $this->getNowDaySeconds() + 3600 * 24 - $this->_getNowTime());
} }
public function _rspErr($errcode, $errmsg) public function _rspErr($errcode, $errmsg)

View File

@ -92,15 +92,15 @@ class GunController extends BaseAuthedController {
), ),
array( array(
'skill_lv' => $talentLv, 'skill_lv' => $talentLv,
'modifytime' => $this->getNowTime() 'modifytime' => $this->_getNowTime()
), ),
array( array(
'accountid' => $this->getAccountId(), 'accountid' => $this->getAccountId(),
'gun_type_id' => $gunTypeId, 'gun_type_id' => $gunTypeId,
'skill_id' => $talentId, 'skill_id' => $talentId,
'skill_lv' => $talentLv, 'skill_lv' => $talentLv,
'createtime' => $this->getNowTime(), 'createtime' => $this->_getNowTime(),
'modifytime' => $this->getNowTime() 'modifytime' => $this->_getNowTime()
) )
); );
$this->rspRawData(array( $this->rspRawData(array(
@ -177,8 +177,8 @@ class GunController extends BaseAuthedController {
'gun_id' => $gunId, 'gun_id' => $gunId,
'skin_id' => $skinId, 'skin_id' => $skinId,
'trytime' => 0, 'trytime' => 0,
'createtime' => $this->getNowTime(), 'createtime' => $this->_getNowTime(),
'modifytime' => $this->getNowTime() 'modifytime' => $this->_getNowTime()
) )
); );
$this->rspRawData(array( $this->rspRawData(array(
@ -246,15 +246,15 @@ class GunController extends BaseAuthedController {
), ),
array( array(
'trytime' => 0, 'trytime' => 0,
'modifytime' => $this->getNowTime() 'modifytime' => $this->_getNowTime()
), ),
array( array(
'accountid' => $this->getAccountId(), 'accountid' => $this->getAccountId(),
'gun_id' => $gunId, 'gun_id' => $gunId,
'skin_id' => $skinId, 'skin_id' => $skinId,
'trytime' => 0, 'trytime' => 0,
'createtime' => $this->getNowTime(), 'createtime' => $this->_getNowTime(),
'modifytime' => $this->getNowTime() 'modifytime' => $this->_getNowTime()
) )
); );
@ -267,15 +267,15 @@ class GunController extends BaseAuthedController {
), ),
array( array(
'skin_id' => $skinId, 'skin_id' => $skinId,
'modifytime' => $this->getNowTime() 'modifytime' => $this->_getNowTime()
), ),
array( array(
'accountid' => $this->getAccountId(), 'accountid' => $this->getAccountId(),
'gun_id' => $gunId, 'gun_id' => $gunId,
'skin_id' => $skinId, 'skin_id' => $skinId,
'trytime' => 0, 'trytime' => 0,
'createtime' => $this->getNowTime(), 'createtime' => $this->_getNowTime(),
'modifytime' => $this->getNowTime() 'modifytime' => $this->_getNowTime()
) )
); );
} }

View File

@ -72,8 +72,8 @@ class UserController extends BaseAuthedController {
#'integral' => 0, #'integral' => 0,
#'season_time' => mt\Season::getCurrSeasonTime(), #'season_time' => mt\Season::getCurrSeasonTime(),
#'team_name' => '', #'team_name' => '',
'createtime' => $this->getNowTime(), 'createtime' => $this->_getNowTime(),
'modifytime' => $this->getNowTime(), 'modifytime' => $this->_getNowTime(),
) )
); );
{ {
@ -159,7 +159,7 @@ class UserController extends BaseAuthedController {
} }
if (($userInfo['kill_his'] + $kills) / ($userInfo['game_times'] + 1) != $k) { if (($userInfo['kill_his'] + $kills) / ($userInfo['game_times'] + 1) != $k) {
$this->updateUserInfo(array( $this->updateUserInfo(array(
'kill_modifytime' => $this->getNowTime(), 'kill_modifytime' => $this->_getNowTime(),
)); ));
} }
//更新胜场信息时间 //更新胜场信息时间
@ -167,7 +167,7 @@ class UserController extends BaseAuthedController {
$this->updateUserInfo(array( $this->updateUserInfo(array(
'win_times' => $userInfo['win_times'] + 1, 'win_times' => $userInfo['win_times'] + 1,
'season_win' => $userInfo['season_win'] + 1, 'season_win' => $userInfo['season_win'] + 1,
'win_modifytime' => $this->getNowTime(), 'win_modifytime' => $this->_getNowTime(),
)); ));
} }
//更新排位积分信息时间 //更新排位积分信息时间
@ -182,7 +182,7 @@ class UserController extends BaseAuthedController {
} }
$this->updateUserInfo(array( $this->updateUserInfo(array(
'integral' => $update_score, 'integral' => $update_score,
'rank_modifytime' => $this->getNowTime(), 'rank_modifytime' => $this->_getNowTime(),
'max_integral' => $update_maxscore, 'max_integral' => $update_maxscore,
)); ));
} }
@ -237,7 +237,7 @@ class UserController extends BaseAuthedController {
'coin_num' => function () use($coin_num) { 'coin_num' => function () use($coin_num) {
return "coin_num + ${coin_num}"; return "coin_num + ${coin_num}";
}, },
'modify_time' => $this->getNowTime(), 'modify_time' => $this->_getNowTime(),
'box_num' => $box_num, 'box_num' => $box_num,
'score' => function () { 'score' => function () {
return 'score'; //?? return 'score'; //??