【文件属性】:
文件名称:微信小程序客服消息模块
文件大小:28KB
文件格式:PDF
更新时间:2021-03-29 17:45:08
微信,小,程序,客服,消息,模块,
发送文字消息
$type = 'text'; // 可选参数,text,link,image,miniprogrampage
$kefu = new \Com\Kefu($type,$token); //群发消息一般都是群发一种类型的消息的,所以将type加载到构造中
$data = array(
'touser'=>'xxxxx',
'text'=>'您好'
)
$kefu->set($data);
$kefu->run();发送图片消息
$type = 'image'; // 可选参数,text,link,image,miniprogrampage
$kefu = new