瀏覽代碼

feat():授权

geek 4 年之前
父節點
當前提交
2b379de32d
共有 2 個文件被更改,包括 3 次插入10 次删除
  1. 0 10
      application/common/service/CommonService.php
  2. 3 0
      application/index/controller/Index.php

+ 0 - 10
application/common/service/CommonService.php

@@ -23,16 +23,6 @@ class CommonService {
 
     }
 
-    public static function getChannelId(): int {
-        self::getSetData();
-        return self::$setData['channel_id'];
-    }
-
-    public static function getAuthKey(): string {
-        self::getSetData();
-        return self::$setData['channel_auth_code'];
-    }
-
     public static function getAuthUrl() {
         $baseUrl = self::getBaeUrl();
         return $baseUrl.'?redirecturi='.self::getRedirectUrl();

+ 3 - 0
application/index/controller/Index.php

@@ -25,6 +25,9 @@ class Index {
         }else{
             $returnUrl = $notifyUrl."?key=".$key."&expire=3600";
         }
+        var_dump($returnUrl);
+        die();
+
         header("Location:".$returnUrl);//跳转到直播观看页
         //        redirect($returnUrl);
     }