zxiansheng 4 лет назад
Родитель
Сommit
a4acf9ee85
2 измененных файлов с 4 добавлено и 3 удалено
  1. 1 0
      backendApi/web/index.php
  2. 3 3
      common/config/main.php

+ 1 - 0
backendApi/web/index.php

@@ -1,4 +1,5 @@
 <?php
+
 ini_set('display_errors', 'On');
 error_reporting(E_ALL);
 defined('YII_DEBUG') or define('YII_DEBUG', true);

+ 3 - 3
common/config/main.php

@@ -31,13 +31,13 @@ return [
             'class' => 'yii\redis\Cache',
             //'redis' => $mainConfig['cacheRedis'],
             'redis' => [
-                'hostname' => '172.18.0.3',
+                'hostname' => '127.0.0.1',
                 'port' => 6379,
                 'database' => 0,
             ]
         ],
-        'tokenRedis' => array_merge(['class' => \yii\redis\Cache::class], $mainConfig['tokenRedis']),
-        'redis' => array_merge(['class' => \yii\redis\Cache::class], $mainConfig['otherRedis']),
+        'tokenRedis' => array_merge(['class' => 'yii\redis\Connection'], $mainConfig['tokenRedis']),
+        'redis' => array_merge(['class' => 'yii\redis\Connection'], $mainConfig['otherRedis']),
         // 'tokenRedis' => array_merge(['class' => \yii\redis\Cache::class], $mainConfig['tokenRedis']),
         // 'redis' => array_merge(['class' => \yii\redis\Cache::class], $mainConfig['otherRedis']),
         'mailer' => [