Bläddra i källkod

feat():授权

geek 4 år sedan
förälder
incheckning
fcaeae66af
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      application/index/controller/Index.php

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

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