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,38 +10,17 @@ return [ ...@@ -10,38 +10,17 @@ 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',
], ],
'bootstrap' => [
'log',
'queue',
],
'components' => [ 'components' => [
'user' => [ 'db' => [
'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 清除缓存
],
'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',
'username' => 'root', 'username' => 'root',
...@@ -49,21 +28,21 @@ return [ ...@@ -49,21 +28,21 @@ return [
'charset' => 'utf8', 'charset' => 'utf8',
'tablePrefix' => 'gli_', 'tablePrefix' => 'gli_',
], ],
'db_pwallet' => [ 'db_pwallet' => [
'class' => 'yii\db\Connection', 'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=127.0.0.1;dbname=api', 'dsn' => 'mysql:host=127.0.0.1;dbname=api',
'username' => 'root', 'username' => 'root',
'password' => '123456', 'password' => '123456',
'charset' => 'utf8', 'charset' => 'utf8',
], ],
'p_sources' => [ 'p_sources' => [
'class' => 'yii\db\Connection', 'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=127.0.0.1;dbname=p_sources', 'dsn' => 'mysql:host=127.0.0.1;dbname=p_sources',
'username' => 'root', 'username' => 'root',
'password' => '123456', 'password' => '123456',
'charset' => 'utf8', 'charset' => 'utf8',
], ],
'cache' => [ 'cache' => [
'class' => 'yii\redis\Cache', 'class' => 'yii\redis\Cache',
'redis' => [ 'redis' => [
'hostname' => 'localhost', 'hostname' => 'localhost',
...@@ -71,24 +50,24 @@ return [ ...@@ -71,24 +50,24 @@ return [
'database' => 0, 'database' => 0,
], ],
], ],
'redis' => [ 'redis' => [
'class' => 'yii\redis\Connection', 'class' => 'yii\redis\Connection',
'hostname' => 'localhost', 'hostname' => 'localhost',
'port' => 6379, 'port' => 6379,
'database' => 1, 'database' => 1,
], ],
'redis-queue' => [ 'redis-queue' => [
'class' => 'yii\redis\Connection', 'class' => 'yii\redis\Connection',
'hostname' => 'localhost', 'hostname' => 'localhost',
'port' => 6379, 'port' => 6379,
'database' => 2, 'database' => 2,
], ],
'queue' => [ 'queue' => [
'class' => \yii\queue\redis\Queue::class, 'class' => \yii\queue\redis\Queue::class,
'redis' => 'redis-queue', // Redis connection component or its config 'redis' => 'redis-queue', // Redis connection component or its config
'channel' => 'queue', // Queue channel key 'channel' => 'queue', // Queue channel key
], ],
'i18n' => [ 'i18n' => [
'translations' => [ 'translations' => [
'*' => [ '*' => [
'class' => 'yii\i18n\PhpMessageSource', 'class' => 'yii\i18n\PhpMessageSource',
...@@ -100,12 +79,12 @@ return [ ...@@ -100,12 +79,12 @@ return [
], ],
], ],
], ],
'uploader' => [ 'uploader' => [
'class' => 'common\components\uploader\Uploader', 'class' => 'common\components\uploader\Uploader',
'baseuri' => 'http://127.0.0.1:8900/admin/upload', 'baseuri' => 'http://127.0.0.1:8900/admin/upload',
'absolute' => dirname(dirname(__DIR__)) . '/backend/upload', 'absolute' => dirname(dirname(__DIR__)) . '/backend/upload',
], ],
'log' => [ 'log' => [
'targets' => [ 'targets' => [
[ [
'class' => 'yii\log\FileTarget', 'class' => 'yii\log\FileTarget',
...@@ -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