|
@@ -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>";
|