Notification time fix
This commit is contained in:
parent
e39efd9176
commit
c381261a01
2
.gitignore
vendored
2
.gitignore
vendored
@ -9,3 +9,5 @@ app/logs/*.log
|
|||||||
.vscode/
|
.vscode/
|
||||||
.vscode/sftp.json
|
.vscode/sftp.json
|
||||||
app/updater/*.bin
|
app/updater/*.bin
|
||||||
|
logs/*
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ class NotificationManager
|
|||||||
|
|
||||||
$notification = new Notification($serverKey);
|
$notification = new Notification($serverKey);
|
||||||
$notification->to($to);
|
$notification->to($to);
|
||||||
$notification->notification($data['title'], $data['body'], $data['icon'], '');
|
$notification->notification($data['title'], date("h:i") . " - " . $data['body'], $data['icon'], '');
|
||||||
$answer = $notification->send();
|
$answer = $notification->send();
|
||||||
$notification = null;
|
$notification = null;
|
||||||
|
|
||||||
@ -76,7 +76,7 @@ class Notification
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->jsonPayload["data"]["notification"]["title"] = $title;
|
$this->jsonPayload["data"]["notification"]["title"] = $title;
|
||||||
$this->jsonPayload["data"]["notification"]["body"] = $body;
|
$this->jsonPayload["data"]["notification"]["body"] = date("h:i") . " - " . $body;
|
||||||
$this->jsonPayload["data"]["notification"]["icon"] = $icon;
|
$this->jsonPayload["data"]["notification"]["icon"] = $icon;
|
||||||
$this->jsonPayload["data"]["notification"]["click_action"] = $action;
|
$this->jsonPayload["data"]["notification"]["click_action"] = $action;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user