1
This commit is contained in:
parent
b5de471f98
commit
08a39a263e
@ -7,6 +7,7 @@ class BaseController {
|
|||||||
private $nowtime = 0;
|
private $nowtime = 0;
|
||||||
private $marketDbConn = null;
|
private $marketDbConn = null;
|
||||||
private $relationDbConn = null;
|
private $relationDbConn = null;
|
||||||
|
private $timeOffset = 0;
|
||||||
|
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
@ -27,7 +28,17 @@ class BaseController {
|
|||||||
|
|
||||||
public function _getNowTime()
|
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()
|
public function _getTodayLeadStr()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user