[更新]修正模板消息发送接地址

This commit is contained in:
Anyon 2018-02-01 10:49:18 +08:00
parent 01ddd4f243
commit 5458604fef

View File

@ -101,7 +101,7 @@ class Template extends WeChat
*/ */
public function send(array $data) public function send(array $data)
{ {
$url = "https://api.weixin.qq.com/cgi-bin/template/del_private_template?access_token=ACCESS_TOKEN"; $url = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=ACCESS_TOKEN";
$this->registerApi($url, __FUNCTION__, func_get_args()); $this->registerApi($url, __FUNCTION__, func_get_args());
return $this->httpPostForJson($url, $data); return $this->httpPostForJson($url, $data);
} }