Преглед на файлове

Merge pull request #107 from dlairetang/patch-1

更新获取头像 url
dodge преди 11 години
родител
ревизия
1fb6f9cd33
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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));