From 3bfbd3233a44070c91eaeb6d0d303e805c2547f5 Mon Sep 17 00:00:00 2001 From: joshle Date: Tue, 13 Jun 2017 16:47:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20https=20=E7=9A=84=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E7=9A=84=20443=20=E7=AB=AF=E5=8F=A3=E5=8F=B7=E7=9A=84?= =?UTF-8?q?=E9=9A=90=E8=97=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 否则会导致生成的 signature 验证不通过。 --- corp/api/Auth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/corp/api/Auth.php b/corp/api/Auth.php index 9243c91..7642281 100755 --- a/corp/api/Auth.php +++ b/corp/api/Auth.php @@ -48,7 +48,7 @@ function curPageURL() } $pageURL .= "://"; - if ($_SERVER["SERVER_PORT"] != "80") + if ($_SERVER["SERVER_PORT"] != "80" && ($pageURL == "https://" && $_SERVER["SERVER_PORT"] != "443")) { $pageURL .= $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . $_SERVER["REQUEST_URI"]; } @@ -102,4 +102,4 @@ static function check($res) exit("Failed: " . json_encode($res)); } } -} \ No newline at end of file +}