From e290c009875937851dd91dc6d4eed5ccad51b5fc Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 13 Dec 2021 14:13:56 +0800 Subject: [PATCH] 1 --- webapp/controller/UserController.class.php | 2 +- webapp/models/DynData.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/controller/UserController.class.php b/webapp/controller/UserController.class.php index b31ae21f..4420fe13 100644 --- a/webapp/controller/UserController.class.php +++ b/webapp/controller/UserController.class.php @@ -38,7 +38,7 @@ class UserController extends BaseAuthedController { $this->_rspData(array( 'info' => User::show($userInfo) )); - $this->_incDailyV(TN_DAILY_LOGINS, 0); + $this->_incDailyV(TN_DAILY_LOGINS, 0, 1); } private function loginCheck($userInfo) diff --git a/webapp/models/DynData.php b/webapp/models/DynData.php index b1d7b220..286e066c 100644 --- a/webapp/models/DynData.php +++ b/webapp/models/DynData.php @@ -113,7 +113,7 @@ class DynData extends BaseModel { ) ); if (self::$dynData) { - self::$dynData[$key] = $defVal; + self::$dynData[$key] = $val; } }