Browse Source

修复bug

binsee 10 years ago
parent
commit
982bb402eb
2 changed files with 2 additions and 2 deletions
  1. 1 1
      Thinkphp/Wechat.class.php
  2. 1 1
      wechat.class.php

+ 1 - 1
Thinkphp/Wechat.class.php

@@ -1190,7 +1190,7 @@ class Wechat
 	    if (!$this->jsapi_ticket && !$this->getJsTicket($appid)) return false;
 	    $ret = strpos($url,'#');
 	    if ($ret)
-	        $url = strsub($url,0,$ret);
+	        $url = substr($url,0,$ret);
 	    $url = trim($url);
 	    if (empty($url))
 	        return false;

+ 1 - 1
wechat.class.php

@@ -1175,7 +1175,7 @@ class Wechat
 	    if (!$this->jsapi_ticket && !$this->getJsTicket($appid)) return false;
 	    $ret = strpos($url,'#');
 	    if ($ret)
-	        $url = strsub($url,0,$ret);
+	        $url = substr($url,0,$ret);
 	    $url = trim($url);
 	    if (empty($url))
 	        return false;