Fix user notification
This commit is contained in:
parent
cef6d86d0f
commit
f0ae44406e
|
@ -54,7 +54,10 @@ class NotifyUser
|
||||||
$body = new \stdClass();
|
$body = new \stdClass();
|
||||||
$body->user_code = $user->user_code;
|
$body->user_code = $user->user_code;
|
||||||
$body->message = $event->notification;
|
$body->message = $event->notification;
|
||||||
$body->data = [];
|
$data = new \stdClass();
|
||||||
|
$data->screen = "notificationview";
|
||||||
|
$data->data = new \stdClass();
|
||||||
|
$data->data->subscription_id = $data->data->id = $subscription->id;
|
||||||
try {
|
try {
|
||||||
$body->date = $this->getCurrentTimeByCountryCode($user->network->country->code_country);
|
$body->date = $this->getCurrentTimeByCountryCode($user->network->country->code_country);
|
||||||
} catch (Throwable $t) {
|
} catch (Throwable $t) {
|
||||||
|
|
Loading…
Reference in New Issue