Commit 5b98e828 authored by rlgy's avatar rlgy

update

parent 92d41323
...@@ -16,9 +16,7 @@ $params = array_merge( ...@@ -16,9 +16,7 @@ $params = array_merge(
return [ return [
'id' => 'app-api', 'id' => 'app-api',
'basePath' => dirname(__DIR__), 'basePath' => dirname(__DIR__),
'timeZone' => 'Etc/GMT-8',
'controllerNamespace' => 'api\controllers', 'controllerNamespace' => 'api\controllers',
'bootstrap' => ['log'],
'defaultRoute' => 'site/index', 'defaultRoute' => 'site/index',
'layout' => false, 'layout' => false,
'modules' => [], 'modules' => [],
...@@ -46,7 +44,6 @@ return [ ...@@ -46,7 +44,6 @@ return [
'enablePrettyUrl' => true, 'enablePrettyUrl' => true,
'showScriptName' => false, 'showScriptName' => false,
], ],
], ],
'params' => $params, 'params' => $params,
]; ];
...@@ -7,10 +7,4 @@ ...@@ -7,10 +7,4 @@
*/ */
return [ return [
'feixiaohao_domain' => 'https://www.feixiaohao.com',
'feixiaohao_page' => [
'assets' => '/assets/',//代币
'currencies' => '/currencies/',//币种详情
'coinmarket' => '/coinmarket/',//上市交易所
],
]; ];
\ No newline at end of file
...@@ -16,13 +16,40 @@ $params = array_merge( ...@@ -16,13 +16,40 @@ $params = array_merge(
return [ return [
'id' => 'app-backend', 'id' => 'app-backend',
'basePath' => '@backend', 'basePath' => '@backend',
'timeZone' => 'Etc/GMT-8',
'controllerNamespace' => 'backend\controllers', 'controllerNamespace' => 'backend\controllers',
'bootstrap' => ['log'], 'bootstrap' => [
'log',
],
'defaultRoute' => 'site/index', 'defaultRoute' => 'site/index',
'layout' => 'main', 'layout' => 'main',
'modules' => [], 'modules' => [],
'components' => [ 'components' => [
'user' => [
'class' => 'yii\web\User',
'loginUrl' => ['login/login'],
'enableAutoLogin' => true,
'identityClass' => 'common\models\Admin',
'identityCookie' => [
'name' => '_identity-backend',
'httpOnly' => true,
],
],
'authManager' => [
'class' => 'common\core\rbac\DbManager',
],
'assetManager' => [
'bundles' => [
'yii\web\JqueryAsset' => [
'sourcePath' => null,
'js' => [],
'depends' => [],
],
'yii\bootstrap\BootstrapAsset' => [
'css' => [],
],
],
'linkAssets' => true, //true 清除缓存
],
'request' => [ 'request' => [
'class' => 'common\core\Request', 'class' => 'common\core\Request',
'baseUrl' => '/admin', 'baseUrl' => '/admin',
......
...@@ -10,37 +10,16 @@ return [ ...@@ -10,37 +10,16 @@ return [
'vendorPath' => '@vendor', 'vendorPath' => '@vendor',
'sourceLanguage' => 'en', 'sourceLanguage' => 'en',
'language' => 'zh-CN', 'language' => 'zh-CN',
'timeZone' => 'Etc/GMT-8',
'aliases' => [ 'aliases' => [
'@bower' => '@vendor/bower-asset', '@bower' => '@vendor/bower-asset',
'@npm' => '@vendor/npm-asset', '@npm' => '@vendor/npm-asset',
], ],
'components' => [ 'bootstrap' => [
'user' => [ 'log',
'class' => 'yii\web\User', 'queue',
'loginUrl' => ['login/login'],
'enableAutoLogin' => true,
'identityClass' => 'common\models\Admin',
'identityCookie' => [
'name' => '_identity-backend',
'httpOnly' => true,
],
],
'authManager' => [
'class' => 'common\core\rbac\DbManager',
],
'assetManager' => [
'bundles' => [
'yii\web\JqueryAsset' => [
'sourcePath' => null,
'js' => [],
'depends' => [],
],
'yii\bootstrap\BootstrapAsset' => [
'css' => [],
],
],
'linkAssets' => true, //true 清除缓存
], ],
'components' => [
'db' => [ 'db' => [
'class' => 'yii\db\Connection', 'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=127.0.0.1;dbname=manage', 'dsn' => 'mysql:host=127.0.0.1;dbname=manage',
...@@ -115,6 +94,7 @@ return [ ...@@ -115,6 +94,7 @@ return [
'api\*', 'api\*',
'common\*', 'common\*',
'console\*', 'console\*',
'h5\*',
], ],
'logVars' => [], 'logVars' => [],
], ],
......
...@@ -56,4 +56,22 @@ return [ ...@@ -56,4 +56,22 @@ return [
'port' => '8118', 'port' => '8118',
'use' => true, 'use' => true,
], ],
'chain33' => [
'scheme' => 'http',
'host' => '120.55.243.226',
'port' => 8801,
],
'h5_activity' => [
'ZWG_GUESS_NEWBEE' => [
'from' => '1MNwSHugmoBcGxqfU8Gt4excUg68DA7hYE', //转币地址
'to' => '14o9MHrrLfpsXf7wu4H4YRwvy84fjd7uaj', //新手 0.001个bty投一次
'to_normal' => '1415uErzSxEVXdfcYLc9ud6G377iStd2xL', //2 个bty投一次
'amount' => 0.001,
'note' => '',
'isToken' => false,
'token' => '',
],
],
]; ];
...@@ -9,11 +9,6 @@ $params = array_merge( ...@@ -9,11 +9,6 @@ $params = array_merge(
return [ return [
'id' => 'app-console', 'id' => 'app-console',
'basePath' => dirname(__DIR__), 'basePath' => dirname(__DIR__),
'timeZone' => 'Etc/GMT-8',
'bootstrap' => [
'log',
'queue'
],
'controllerNamespace' => 'console\controllers', 'controllerNamespace' => 'console\controllers',
'aliases' => [ 'aliases' => [
'@bower' => '@vendor/bower-asset', '@bower' => '@vendor/bower-asset',
......
...@@ -16,11 +16,7 @@ $params = array_merge( ...@@ -16,11 +16,7 @@ $params = array_merge(
return [ return [
'id' => 'app-h5', 'id' => 'app-h5',
'basePath' => dirname(__DIR__), 'basePath' => dirname(__DIR__),
'timeZone' => 'Etc/GMT-8',
'controllerNamespace' => 'h5\controllers', 'controllerNamespace' => 'h5\controllers',
'bootstrap' => [
'log'
],
'defaultRoute' => 'site/index', 'defaultRoute' => 'site/index',
'layout' => false, 'layout' => false,
'modules' => [], 'modules' => [],
......
...@@ -7,10 +7,4 @@ ...@@ -7,10 +7,4 @@
*/ */
return [ return [
'feixiaohao_domain' => 'https://www.feixiaohao.com',
'feixiaohao_page' => [
'assets' => '/assets/',//代币
'currencies' => '/currencies/',//币种详情
'coinmarket' => '/coinmarket/',//上市交易所
],
]; ];
\ No newline at end of file
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