1
This commit is contained in:
parent
73c0347e8c
commit
172a2bb9fb
@ -38,7 +38,7 @@ class BaseController {
|
|||||||
|
|
||||||
public function _setTimeOffset($seconds)
|
public function _setTimeOffset($seconds)
|
||||||
{
|
{
|
||||||
$this->timeOffset = seconds;
|
$this->timeOffset = $seconds;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function _getTodayLeadStr()
|
public function _getTodayLeadStr()
|
||||||
|
@ -14,6 +14,14 @@ class StakingController extends BaseAuthedController {
|
|||||||
const BADGE_TYPE = 2;
|
const BADGE_TYPE = 2;
|
||||||
const CEC_TYPE = 3;
|
const CEC_TYPE = 3;
|
||||||
|
|
||||||
|
public function _handlePre()
|
||||||
|
{
|
||||||
|
parent::_handlePre();
|
||||||
|
if (SERVER_ENV != _ONLINE) {
|
||||||
|
myself()->_setTimeOffset(3600 * 24);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public function info()
|
public function info()
|
||||||
{
|
{
|
||||||
$info = array(
|
$info = array(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user