问答详情
源自:1-3 验证群发接口单文本实现

用的是预览接口,返回45009,接口调用超过限制

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.组装群发接口数据array

        $array = array(

            'touser' => 'oZ1_6vjgbZJStTHK1H8kMPSVDJt0',//openid

            'text' => array( 'content' => urlencode('爸爸叫你回家吃饭') ),

            'msgtype' => 'text'

        );

         

        $postJson = urldecode(json_encode($array));

        //3.调用curl

        $res = $this->http_curl($url,'post','json',$postJson);

        var_dump($res);

    }

预览接口也有限制吗?

提问者:你来啦米斯郡 2016-12-26 17:13

个回答

  • 周航111
    2016-12-28 15:24:28

    是滴按照正常是100次