generated from liutk/owl-admin-base
Update
parent
257c29c49c
commit
de8e11dfae
|
|
@ -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 根据消息类型发送通知
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue