lizhen_gitee 1 天之前
父节点
当前提交
c6dc3badfc
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 0
      application/api/controller/Demo.php
  2. 1 1
      application/config.php

+ 1 - 0
application/api/controller/Demo.php

@@ -79,6 +79,7 @@ class Demo extends Api
      */
     public function test3()
     {
+        $this->apiLimit();
         $this->success('返回成功', ['action' => 'test3']);
     }
 

+ 1 - 1
application/config.php

@@ -341,7 +341,7 @@ return [
         // 端口
         'port'       => Env::get('redis.REDIS_PORT', 6379),
         // 密码
-        'password'   => Env::get('redis.REDIS_PASSWORD', ''),
+        'password'   => Env::get('redis.REDIS_PASSWORD', 'huxiu001'),
         'select'     => Env::get('redis.REDIS_DB', 15),
         'timeout'    => Env::get('redis.REDIS_TIMEOUT', 0),//
         // 默认缓存时常 0为永久