Commit bcec4cfd by feixiang

短信通知修改

parent 33376815
...@@ -21,20 +21,24 @@ class TencentSMS implements SenderInterface ...@@ -21,20 +21,24 @@ class TencentSMS implements SenderInterface
private $param; private $param;
public function __construct(string $phone, string $template, array $param) private $storeId;
public function __construct(string $phone, string $template, array $param, int $storeId)
{ {
$this->phone = $phone; $this->phone = $phone;
$this->template = $template; $this->template = $template;
$this->param = $param; $this->param = $param;
$this->storeId = $storeId;
} }
public function format() public function format()
{ {
$this->data[$this->sendType] = [ $this->data[$this->sendType] = [
[ [
'templateId' => $this->template, 'storeId' => $this->storeId,
'templateId' => $this->template,
'phoneNumber' => $this->phone, 'phoneNumber' => $this->phone,
'param' => $this->param, 'param' => $this->param,
] ]
]; ];
......
...@@ -81,7 +81,7 @@ interface NoticeInterface ...@@ -81,7 +81,7 @@ interface NoticeInterface
* *
* @param array $sendTypes * @param array $sendTypes
* @param array $data * @param array $data
* @param $sendTime //发送时间,立即返送填0 * @param $sendTime //如果需要多个时间段发送则填写时间戳数组例如:[15800000,1580000]
* @param string $redisKey //发送事件的redis key(如果定时发送消息,中途需要取消则需要传入此项) * @param string $redisKey //发送事件的redis key(如果定时发送消息,中途需要取消则需要传入此项)
* @return mixed * @return mixed
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment