wugg 2 years ago
parent
commit
0a689d712b
2 changed files with 5 additions and 5 deletions
  1. 1 1
      config/app.php
  2. 4 4
      config/cache.php

+ 1 - 1
config/app.php

@@ -30,5 +30,5 @@ return [
     'error_message'    => '页面错误!请稍后再试~',
     // 显示错误信息
     'show_error_msg'   => false,
-     "api_host"=>"http://user.test241.wanyuhengtong.com"
+     "api_host"=>env("user.hosturl","http://user.test241.wanyuhengtong.com")
 ];

+ 4 - 4
config/cache.php

@@ -14,7 +14,7 @@ return [
             // 驱动方式
             'type'       => 'File',
             // 缓存保存目录
-            'path'       => '',
+            'path'  => '',
             // 缓存前缀
             'prefix'     => '',
             // 缓存有效期 0表示永久缓存
@@ -26,9 +26,9 @@ return [
         ],
         'redis'=>[
             'type' => 'Redis',
-            'host' => '120.46.155.214',
-            'port' => '6379',
-            'password' => 'Test!@#123',
+            'host' =>env("redis.host",'127.0.0.1'),
+            'port' => env("redis.port",'6379'),
+            'password' => env("redis.password",'Test!@#123'),
             'timeout' => 3600
         ],
         // 更多的缓存连接