You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
406 B

<?php
namespace tencent\wechat\weixin;
use EasyWeChat\Factory;
class Template extends Base
{
/**
* 发送模板消息
* @param array $data 模板消息内容
* @date 2022-03-26
*/
public function sendTemplate($data)
{
$app = Factory::officialAccount($this->weixinConfig);
$result = $app->template_message->send($data);
return $result;
}
}