Browse Source

feat():授权

geek 4 years ago
parent
commit
44ec20edce
2 changed files with 3 additions and 3 deletions
  1. 2 2
      application/index/controller/Index.php
  2. 1 1
      config/cache.php

+ 2 - 2
application/index/controller/Index.php

@@ -46,9 +46,9 @@ class Index {
         //增加客户自己的验证逻辑,例如登录,关注,付费,填手机号等
         $key = md5($visitorId.$data['channel_auth_code']);
         if(strpos($notifyUrl,'?') !== false){//url参数处理,将key加到url参数中
-            $returnUrl = $notifyUrl."&key=".$key."&expire=3600";
+            $returnUrl = $notifyUrl."&key=".$key."&expire=10";
         }else{
-            $returnUrl = $notifyUrl."?key=".$key."&expire=3600";
+            $returnUrl = $notifyUrl."?key=".$key."&expire=10";
         }
         header("Location:".$returnUrl);//跳转到直播观看页
         //        redirect($returnUrl);

+ 1 - 1
config/cache.php

@@ -15,7 +15,7 @@
 
 return [
     // 驱动方式
-    'type'   => 'reids',
+    'type'   => 'redis',
     // 缓存保存目录
     'path'   => '',
     // 缓存前缀