http请求方式: POST
https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=ACCESS_TOKEN
主要的是url,openid和模板id
参数按照文档里的写就行了
/*
* 发送模板消息
*/
public function send_template_message(){
$openid='oJMd0weUXJppG4bt4GaqSKRw9Ct4';
$url='https://api.weixin.qq.com/cgi-bin/message/template/send?access_token='.$this->tools->get_access_token()