Commit 0359cf8a authored by 董锦君's avatar 董锦君

添加无模板发消息

parent a8f4b8ff
...@@ -36,7 +36,7 @@ class MessageHandler ...@@ -36,7 +36,7 @@ class MessageHandler
* @param array $replace * @param array $replace
* @throws HttpResponseException * @throws HttpResponseException
*/ */
public function sendTemp($receiverIds, $templateId, $replace = []) public function sendTemp($receiverIds, $templateId, $replace = [],$content)
{ {
$application = $this->config->get('app_name'); $application = $this->config->get('app_name');
if (!$application) { if (!$application) {
...@@ -44,7 +44,7 @@ class MessageHandler ...@@ -44,7 +44,7 @@ class MessageHandler
} }
$receiverIds = is_array($receiverIds) ? $receiverIds : [$receiverIds]; $receiverIds = is_array($receiverIds) ? $receiverIds : [$receiverIds];
$sendUserId = Auth::id(); $sendUserId = Auth::id();
$this->messageService->send($receiverIds, $application, $templateId, $sendUserId, $replace); $this->messageService->send($receiverIds, $application, $templateId, $sendUserId, $replace,$content);
} }
} }
\ No newline at end of file
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