diff --git a/third_party/phpcommon b/third_party/phpcommon index cd255795..11fd0160 160000 --- a/third_party/phpcommon +++ b/third_party/phpcommon @@ -1 +1 @@ -Subproject commit cd255795e3b8be6ca99faaa8eff0ce49a4de871d +Subproject commit 11fd016051f98589781dc1f0c2375ffd0c1a8814 diff --git a/webapp/controller/BaseAuthedController.class.php b/webapp/controller/BaseAuthedController.class.php index 1c5eab19..e80ed888 100644 --- a/webapp/controller/BaseAuthedController.class.php +++ b/webapp/controller/BaseAuthedController.class.php @@ -134,7 +134,7 @@ class BaseAuthedController extends BaseController { //第一次登录或者跨天更新最后活跃时间 if (empty($lastActiveTime) || $lastActiveTime < $this->_getNowDaySeconds()) { - $r->setNxPx(LAST_ACTIVE_TIME . $this->_getAccountId(), $this->_getNowTime(), 1000 * 3600 * 24); + $r->setPx(LAST_ACTIVE_TIME . $this->_getAccountId(), $this->_getNowTime(), 1000 * 3600 * 24); } } diff --git a/webapp/controller/BattleController.class.php b/webapp/controller/BattleController.class.php index 69ddd013..bc1aaf4e 100644 --- a/webapp/controller/BattleController.class.php +++ b/webapp/controller/BattleController.class.php @@ -1088,7 +1088,7 @@ class BattleController extends BaseAuthedController { } } } - $r->setNxPx(DEC_BATTLE_TICKET . $roomUuid, 1, 1000 * 3600); + $r->setPx(DEC_BATTLE_TICKET . $roomUuid, 1, 1000 * 3600); } }