rabin 3 年之前
父節點
當前提交
76a29aff2a
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      lib/Wechat.php

+ 4 - 0
lib/Wechat.php

@@ -500,6 +500,10 @@ class Wechat
 		} else {
 			$url = htmlspecialchars_decode($url);
 		}
+		if (strstr($url, '#')) {
+			$temp = explode('#', $url);
+			$url = $temp[0];
+		}
 		$timestamp = time();
 		$noncestr = $this->nonce();
 		$signature = $this->signature($ticket, $url, $timestamp, $noncestr);