DESKTOP-2STQMTS\Administrator 3 rokov pred
rodič
commit
2d2f89f3bc
1 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  1. 3 3
      app/Servers/WeChat/WeixinServer.php

+ 3 - 3
app/Servers/WeChat/WeixinServer.php

@@ -86,9 +86,9 @@ class WeixinServer
 
     function redirect($uri = '', $method = 'location', $http_response_code = 302)
     {
-//        if (!preg_match('#^https?://#i', $uri)) {
-//            $uri = site_url($uri);
-//        }
+        if (!preg_match('#^https?://#i', $uri)) {
+            $uri = site_url($uri);
+        }
         switch ($method) {
             case 'refresh'    :
                 header("Refresh:0;url=" . $uri);