lizhen_gitee 16 시간 전
부모
커밋
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为永久