Files
xk-api-yii/common/core/sms/WaitApprovalMessage.php
2024-09-19 11:32:39 +08:00

36 lines
816 B
PHP

<?php
/*
* @author: liudiao
* @Date: 2023-07-31 16:14:32
* @Description: 有待审核处方通知药师
*/
namespace common\core\sms;
use Overtrue\EasySms\Contracts\GatewayInterface;
use Overtrue\EasySms\Message;
class WaitApprovalMessage extends Message{
protected $smsConfig;
public function __construct($smsConfig)
{
$this->smsConfig = $smsConfig;
}
// 定义直接使用内容发送平台的内容
public function getContent(GatewayInterface $gateway = null)
{
return sprintf('你有新的待审核药方,详情请前往萧康云医小程序查看!');
}
// 定义使用模板发送方式平台所需要的模板 ID
public function getTemplate(GatewayInterface $gateway = null)
{
return $this->smsConfig['template_id'];
}
}