Browse Source

feat():授权

geek 4 years ago
parent
commit
762df50420
1 changed files with 1 additions and 3 deletions
  1. 1 3
      application/index/controller/Index.php

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

@@ -15,8 +15,6 @@ class Index {
         $visitorId = input('visitorId');
         $visitorId = input('visitorId');
         $notifyUrl = input('notify_url');
         $notifyUrl = input('notify_url');
         if (empty(session('unionid'))){
         if (empty(session('unionid'))){
-            var_dump(CommonService::getAuthUrl());
-            die();
             header("Location:".CommonService::getAuthUrl());
             header("Location:".CommonService::getAuthUrl());
             return;
             return;
         }
         }
@@ -27,7 +25,7 @@ class Index {
         }else{
         }else{
             $returnUrl = $notifyUrl."?key=".$key."&expire=3600";
             $returnUrl = $notifyUrl."?key=".$key."&expire=3600";
         }
         }
-        header("Location:".$returnUrl.'&a='.session('unionid'));//跳转到直播观看页
+        header("Location:".$returnUrl);//跳转到直播观看页
         //        redirect($returnUrl);
         //        redirect($returnUrl);
     }
     }
 }
 }