stanley-king 6 yıl önce
ebeveyn
işleme
493b45813f
3 değiştirilmiş dosya ile 3 ekleme ve 15 silme
  1. 1 1
      helper/fcgi_server.php
  2. 0 2
      helper/session_helper.php
  3. 2 12
      mobile/wxauthor.php

+ 1 - 1
helper/fcgi_server.php

@@ -126,7 +126,7 @@ class fcgi_server
             fcgi_headers_sent();
             $contents = ob_get_clean();
             Log::record("run_looper contents={$contents}",Log::ERR);
-            fcgi_echo($contents);
+//            fcgi_echo($contents);
             Log::end_sql_log();
             //fcgi_finish();//单线程的情况下不需要调用
             $msg = sprintf("request time=%.6f\r\n\r\n",microtime(true) - $start);

+ 0 - 2
helper/session_helper.php

@@ -315,8 +315,6 @@ class session_helper
             }
             else
             {
-                return true;
-
                 if (session_helper::binded_wechat())
                 {
                     $author_time = $_SESSION['wxauthor_time'];

+ 2 - 12
mobile/wxauthor.php

@@ -35,11 +35,9 @@ else
             $origin_url = wechat_helper::get_origin_url();
             wechat_helper::clear_origin_url();
             Log::record("origin_url={$origin_url}",Log::DEBUG);
-            //                            window.location.href =\"{$origin_url}\";
 
             if(!empty($origin_url))
             {
-                $now = microtime();
                 $html = "<!DOCTYPE html>
                         <html lang=\"en\">
                         <head>
@@ -48,10 +46,7 @@ else
                         </head>
                         <body>
                         <script>
-                            var meta = document.createElement('meta');
-                            meta.httpEquiv = \"refresh\";
-                            meta.content = \"0;\" + \"{$origin_url}\";
-                            document.head.appendChild(meta);
+                            window.location.href =\"{$origin_url}\";
                         </script>
                         </body>
                         </html>";
@@ -62,11 +57,9 @@ else
     }
     else
     {
-        $now = microtime();
         $host = urldecode($state);
         $url = "{$host}/mobile/wxauthor.php?code={$code}&state={$state}";
         Log::record("redirect url={$url}",Log::DEBUG);
-        //                            window.location.href =\"{$url}\";
         $html = "<!DOCTYPE html>
                         <html lang=\"en\">
                         <head>
@@ -75,10 +68,7 @@ else
                         </head>
                         <body>
                         <script>
-                            var meta = document.createElement('meta');
-                            meta.httpEquiv = \"refresh\";
-                            meta.content = \"0;\" + \"{$url}\";
-                            document.head.appendChild(meta);                            
+                            window.location.href =\"{$url}\";
                         </script>
                         </body>
                         </html>";