Selaa lähdekoodia

feat():授权

geek 4 vuotta sitten
vanhempi
commit
fcaeae66af
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      application/index/controller/Index.php

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

@@ -15,7 +15,8 @@ class Index {
         $visitorId = input('visitorId');
         $visitorId = input('visitorId');
         $notifyUrl = input('notify_url');
         $notifyUrl = input('notify_url');
         if (empty(session('unionid'))){
         if (empty(session('unionid'))){
-            header("Location:".CommonService::getAuthUrl());
+//            header("Location:".CommonService::getAuthUrl());
+            redirect(CommonService::getAuthUrl());
             die();
             die();
         }
         }
         //增加客户自己的验证逻辑,例如登录,关注,付费,填手机号等
         //增加客户自己的验证逻辑,例如登录,关注,付费,填手机号等