Commit 5b2b1748 authored by rlgy's avatar rlgy

update

parent 9d14179d
...@@ -43,6 +43,7 @@ class BillJob extends BaseObject implements JobInterface ...@@ -43,6 +43,7 @@ class BillJob extends BaseObject implements JobInterface
if ($data) { if ($data) {
$model->height = $data['height'] ?? 0; $model->height = $data['height'] ?? 0;
if (isset($data['blocktime']) && !empty($data['blocktime'])) { if (isset($data['blocktime']) && !empty($data['blocktime'])) {
date_default_timezone_set('PRC');
$model->blocktime = date('Y-m-d H:i:s', $data['blocktime']); $model->blocktime = date('Y-m-d H:i:s', $data['blocktime']);
} }
} }
......
...@@ -7,18 +7,19 @@ $params = array_merge( ...@@ -7,18 +7,19 @@ $params = array_merge(
); );
return [ return [
'id' => 'app-console', 'id' => 'app-console',
'basePath' => dirname(__DIR__), 'basePath' => dirname(__DIR__),
'bootstrap' => [ 'timeZone' => 'Etc/GMT-8',
'bootstrap' => [
'log', 'log',
'queue' 'queue'
], ],
'controllerNamespace' => 'console\controllers', 'controllerNamespace' => 'console\controllers',
'aliases' => [ 'aliases' => [
'@bower' => '@vendor/bower-asset', '@bower' => '@vendor/bower-asset',
'@npm' => '@vendor/npm-asset', '@npm' => '@vendor/npm-asset',
], ],
'components' => [ 'components' => [
], ],
'params' => $params, 'params' => $params,
]; ];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment