初始化仓库
This commit is contained in:
35
common/core/sms/WaitApprovalMessage.php
Normal file
35
common/core/sms/WaitApprovalMessage.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?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'];
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user