Commit 9038c8a6 authored by 杨培's avatar 杨培

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

parents a10e324a 5c78db44
...@@ -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',
......
...@@ -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',
], ],
......
...@@ -32,12 +32,11 @@ $baseUrl = \yii\helpers\Url::base(); ...@@ -32,12 +32,11 @@ $baseUrl = \yii\helpers\Url::base();
<div class=" input-wrapper"> <div class=" input-wrapper">
<input name="telephone" value="<?= $model->telephone ?>" type="text" class="" placeholder="手机号码" <input name="telephone" value="<?= $model->telephone ?>" type="text" class="" placeholder="手机号码" autofocus="">
autofocus=""> <span class="tips"><?=$model->getFirstError('password')?></span>
</div> </div>
<div class=" input-wrapper last-wrapper"> <div class=" input-wrapper last-wrapper">
<input name="password" type="password" class="" placeholder="密码"> <input name="password" type="password" class="" placeholder="密码">
<span class="tips tip-vcode"><?=$model->getFirstError('password')?></span>
</div> </div>
</div> </div>
......
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