2026-03-21 02:55:24 +08:00
|
|
|
<?php
|
|
|
|
|
// +----------------------------------------------------------------------
|
2026-03-29 11:22:52 +08:00
|
|
|
// | Author: ScottPan Team
|
2026-03-21 02:55:24 +08:00
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
namespace crmeb\services\template\storage;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use crmeb\basic\BaseMessage;
|
|
|
|
|
|
|
|
|
|
class Baidu extends BaseMessage
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* 初始化
|
|
|
|
|
* @param array $config
|
|
|
|
|
* @return mixed|void
|
|
|
|
|
*/
|
|
|
|
|
protected function initialize(array $config)
|
|
|
|
|
{
|
|
|
|
|
parent::initialize($config); //
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 发送模板消息
|
|
|
|
|
* @param string $templateId
|
|
|
|
|
* @param array $data
|
|
|
|
|
* @return mixed|void
|
|
|
|
|
*/
|
|
|
|
|
public function send(string $templateId, array $data = [])
|
|
|
|
|
{
|
|
|
|
|
//
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 添加模板消息
|
|
|
|
|
* @param string $shortId
|
|
|
|
|
* @return mixed|void
|
|
|
|
|
*/
|
|
|
|
|
public function add(string $shortId)
|
|
|
|
|
{
|
|
|
|
|
//
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 删除模板消息
|
|
|
|
|
* @param string $templateId
|
|
|
|
|
* @return mixed|void
|
|
|
|
|
*/
|
|
|
|
|
public function delete(string $templateId)
|
|
|
|
|
{
|
|
|
|
|
//
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 模板消息列表
|
|
|
|
|
* @return mixed|void
|
|
|
|
|
*/
|
|
|
|
|
public function list()
|
|
|
|
|
{
|
|
|
|
|
//
|
|
|
|
|
}
|
|
|
|
|
}
|