Explorar el Código

Merge pull request #233 from icedfish/master

Bugfix 企业号Oauth后,用户id获取不到。
dodge hace 10 años
padre
commit
aee0dcd00c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      qywechat.class.php

+ 1 - 1
qywechat.class.php

@@ -1641,7 +1641,7 @@ class Wechat
 	public function getUserId($code,$agentid=0){
 	    if (!$agentid) $agentid=$this->agentid;
 	    if (!$this->access_token && !$this->checkAuth()) return false;
-	    $result = $this->http_get(self::API_URL_PREFIX.self::USER_GETINFO_URL.'access_token='.$this->access_token.'&code='.$code.'&agentid'.$agentid);
+	    $result = $this->http_get(self::API_URL_PREFIX.self::USER_GETINFO_URL.'access_token='.$this->access_token.'&code='.$code.'&agentid='.$agentid);
 	    if ($result)
 	    {
 	        $json = json_decode($result,true);