Commit 5c78db44 authored by 汪波's avatar 汪波

Merge remote-tracking branch 'origin/dev' into dev

parents 93ac30f9 e59e6cc4
...@@ -3,11 +3,8 @@ return [ ...@@ -3,11 +3,8 @@ return [
'components' => [ 'components' => [
'cache' => [ 'cache' => [
'class' => 'yii\redis\Cache', 'class' => 'yii\redis\Cache',
'redis' => [ 'redis' => 'redis',
'hostname' => '192.168.1.185', 'keyPrefix' => 'yunya::'
'port' => 6379,
'database' => 0,
]
], ],
'db' => [ 'db' => [
'class' => 'yii\db\Connection', 'class' => 'yii\db\Connection',
......
...@@ -9,7 +9,7 @@ return [ ...@@ -9,7 +9,7 @@ return [
'msg.userid' => '78', 'msg.userid' => '78',
'msg.account' => '276147613x', 'msg.account' => '276147613x',
'msg.password' => '276147613', 'msg.password' => '276147613',
'msg.signature' => '【最课堂】', 'msg.signature' => '【云涯】',
'alipay' => [ 'alipay' => [
'partner' => '2088701843067550', 'partner' => '2088701843067550',
'seller_id' => '2088701843067550', 'seller_id' => '2088701843067550',
......
...@@ -14,11 +14,17 @@ $config = [ ...@@ -14,11 +14,17 @@ $config = [
'timeout' => 3600, 'timeout' => 3600,
'name' => 'zuiektang-frontend', 'name' => 'zuiektang-frontend',
'class' => 'yii\redis\Session', 'class' => 'yii\redis\Session',
'redis' => [ 'redis' => 'redis'
'hostname' => '192.168.1.185', ],
'port' => 6379, 'log' => [
'database' => 0, 'traceLevel' => YII_DEBUG ? 3 : 0,
] 'targets' => [
[
'class' => 'yii\log\FileTarget',
'levels' => ['error', 'warning'],
'logFile'=>'@runtime/logs/app-'.date('Y-m-d',time()).'.log',
],
],
], ],
], ],
]; ];
......
...@@ -3,11 +3,8 @@ return [ ...@@ -3,11 +3,8 @@ return [
'components' => [ 'components' => [
'cache' => [ 'cache' => [
'class' => 'yii\redis\Cache', 'class' => 'yii\redis\Cache',
'redis' => [ 'redis' => 'redis',
'hostname' => '192.168.1.21', 'keyPrefix' => 'yunya::'
'port' => 6380,
'database' => 2,
]
], ],
'db' => [ 'db' => [
'class' => 'yii\db\Connection', 'class' => 'yii\db\Connection',
......
...@@ -13,11 +13,19 @@ $config = [ ...@@ -13,11 +13,19 @@ $config = [
'timeout' => 3600, 'timeout' => 3600,
'name' => 'zuiektang-frontend', 'name' => 'zuiektang-frontend',
'class' => 'yii\redis\Session', 'class' => 'yii\redis\Session',
'redis' => [ 'redis' => 'redis'
'hostname' => '192.168.1.21', ],
'port' => 6380, 'log' => [
'database' => 2, 'traceLevel' => YII_DEBUG ? 3 : 0,
] 'targets' => [
[
'class' => 'yii\log\FileTarget',
'levels' => ['error', 'warning'],
'except'=>['yii\web\HttpException:*', 'yii\i18n\I18N\*'],
'logFile'=>'@runtime/logs/app-'.date('Y-m-d',time()).'.log',
'logVars'=>[],
],
],
], ],
], ],
]; ];
......
...@@ -35,15 +35,6 @@ return [ ...@@ -35,15 +35,6 @@ return [
$user->save(); $user->save();
} }
], ],
'log' => [
'traceLevel' => YII_DEBUG ? 3 : 0,
'targets' => [
[
'class' => 'yii\log\FileTarget',
'levels' => ['error', 'warning'],
],
],
],
'errorHandler' => [ 'errorHandler' => [
'errorAction' => 'site/error', 'errorAction' => 'site/error',
], ],
......
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