main
Jing Li 2024-04-29 00:34:03 +08:00
parent 257c29c49c
commit de8e11dfae
1 changed files with 2 additions and 6 deletions

View File

@ -19,19 +19,15 @@ class MessageService
if ($employee instanceof Employee) {
return $employee->id;
}
return $employee;
return (int) $employee;
})->all();
$message = Message::create([
Message::create([
'type' => $type,
'title' => $title,
'content' => $content,
'additional' => $additional,
'employee_ids' => $employeeIds,
]);
switch ($message->type) {
// @todo 根据消息类型发送通知
}
}
}