From 08a39a263e7e06b012af8ab433c1c46f9d67c0ab Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 29 Aug 2023 18:45:00 +0800 Subject: [PATCH] 1 --- webapp/controller/BaseController.class.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/webapp/controller/BaseController.class.php b/webapp/controller/BaseController.class.php index 548fe7f7..af2212d8 100644 --- a/webapp/controller/BaseController.class.php +++ b/webapp/controller/BaseController.class.php @@ -7,6 +7,7 @@ class BaseController { private $nowtime = 0; private $marketDbConn = null; private $relationDbConn = null; + private $timeOffset = 0; function __construct() { @@ -27,7 +28,17 @@ class BaseController { public function _getNowTime() { - return $this->nowtime; + return $this->nowtime + $this->timeOffset; + } + + public function _getTimeOffset() + { + return $this->timeOffset; + } + + public function _setTimeOffset($seconds) + { + $this->timeOffset = seconds; } public function _getTodayLeadStr()