PHP语言突破微信公共号群发限制

时间:2017-02-10 07:06:22
【文件属性】:

文件名称:PHP语言突破微信公共号群发限制

文件大小:5KB

文件格式:RAR

更新时间:2017-02-10 07:06:22

群发限制

class Weixin { public $userFakeid;//所有粉丝的fakeid private $_account;//用户名 private $_password;//密码 private $url;//请求的网址 private $send_data;//提交的数据 private $getHeader = 0;//是否显示Header信息 private $token;//公共帐号TOKEN private $host = 'mp.weixin.qq.com';//主机 private $origin = 'https://mp.weixin.qq.com'; private $referer;//引用地址 private $cookie; private $pageSize = 100000;//每页用户数(用于读取所有用户) private $userAgent = 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0'; public function __construct($options){ $this->_account = isset($options['account'])?$options['account']:''; $this->_password = isset($options['password'])?$options['password']:''; $this->login(); } //登录 private function login(){ $url = 'https://mp.weixin.qq.com/cgi-bin/login?lang=zh_CN'; $this->send_data = array( 'username' => $this->_account, 'pwd' => md5($this->_password), 'f' => 'json' ); $this->referer = "https://mp.weixin.qq.com/"; $this->getHeader = 1; $result = explode("\n",$this->curlPost($url)); foreach ($result as $key => $value) { $value = trim($value);


【文件预览】:
wechat-master
----demo.php(271B)
----~weixin.php.htm(0B)
----~~demo.php.htm(2KB)
----~demo.php(271B)
----weixin.php(10KB)
----README.md(597B)

网友评论

  • 测试了,感觉不好使