Explorar el Código

feat():授权

geek hace 4 años
padre
commit
fcaeae66af
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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();
         }
         //增加客户自己的验证逻辑,例如登录,关注,付费,填手机号等