rabin 3 years ago
parent
commit
76a29aff2a
1 changed files with 4 additions and 0 deletions
  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);