|
|
@ -146,12 +146,12 @@ class AdminNoticeService extends BaseService |
|
|
public static function createData($alarm_type, $msg_type, $data, $user_id) |
|
|
public static function createData($alarm_type, $msg_type, $data, $user_id) |
|
|
{ |
|
|
{ |
|
|
$create = [ |
|
|
$create = [ |
|
|
'alarm_time' => get_datetime(), |
|
|
'alarm_time' => date("Y-m-d H:i:s", time()), |
|
|
'alarm_type' => $alarm_type, |
|
|
'alarm_type' => $alarm_type, |
|
|
'msg_type' => $msg_type, |
|
|
'msg_type' => $msg_type, |
|
|
'is_read' => 0, |
|
|
'is_read' => 0, |
|
|
'user_id' => $user_id, |
|
|
'user_id' => $user_id, |
|
|
'created_at' => get_datetime() |
|
|
'created_at' => date("Y-m-d H:i:s", time()) |
|
|
]; |
|
|
]; |
|
|
if (isset($data['space_id']) && $data['space_id']) { |
|
|
if (isset($data['space_id']) && $data['space_id']) { |
|
|
$create['space_id'] = $data['space_id']; |
|
|
$create['space_id'] = $data['space_id']; |
|
|
|