This commit is contained in:
aozhiwei 2023-08-29 18:48:40 +08:00
parent 73c0347e8c
commit 172a2bb9fb
2 changed files with 9 additions and 1 deletions

View File

@ -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()

View File

@ -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(