用的是預(yù)覽接口,返回45009,接口調(diào)用超過限制
public function sendMsgAll(){
? ? ? ? //1.獲取全局access_token
? ? ? ? $access_token = $this->getWxAccessToken();
? ? ? ? $url = "https://api.weixin.qq.com/cgi-bin/message/mass/preview?access_token=".$access_token;
? ? ? ? //2.組裝群發(fā)接口數(shù)據(jù)array
? ? ? ? $array = array(
? ? ? ? ? ? 'touser' => 'oZ1_6vjgbZJStTHK1H8kMPSVDJt0',//openid
? ? ? ? ? ? 'text' => array( 'content' => urlencode('爸爸叫你回家吃飯') ),
? ? ? ? ? ? 'msgtype' => 'text'
? ? ? ? );
? ? ? ? ?
? ? ? ? $postJson = urldecode(json_encode($array));
? ? ? ? //3.調(diào)用curl
? ? ? ? $res = $this->http_curl($url,'post','json',$postJson);
? ? ? ? var_dump($res);
? ? }
預(yù)覽接口也有限制嗎?
2016-12-28
是滴按照正常是100次