Browse Source

Update wechatext.class.php

更新获取头像
Dlairetang 10 years ago
parent
commit
67393067c8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      wechatext.class.php

+ 1 - 1
wechatext.class.php

@@ -479,7 +479,7 @@ class Wechatext
 		$send_snoopy = new Snoopy;
 		$send_snoopy->rawheaders['Cookie']= $this->cookie;
 		$send_snoopy->referer = "https://mp.weixin.qq.com/cgi-bin/getmessage?t=wxm-message&lang=zh_CN&count=50&token=".$this->_token;
-		$url = "https://mp.weixin.qq.com/cgi-bin/getheadimg?fakeid=$fakeid&token=".$this->_token."&lang=zh_CN";
+		$url = "https://mp.weixin.qq.com/misc/getheadimg?fakeid=$fakeid&token=".$this->_token."&lang=zh_CN";
 		$send_snoopy->fetch($url);
 		$result = $send_snoopy->results;
 		$this->log('Head image:'.$fakeid.'; length:'.strlen($result));