zz пре 2 година
родитељ
комит
e37708fc8d
1 измењених фајлова са 6 додато и 1 уклоњено
  1. 6 1
      app/Jobs/Push/NewUserPushMsg.php

+ 6 - 1
app/Jobs/Push/NewUserPushMsg.php

@@ -75,7 +75,12 @@ class NewUserPushMsg implements ShouldQueue
             $log = $this->createLog();
             $filter = $this->fliterUser($this->task->push_filter, $this->uid);
             if ($filter) {
-                $result = PushMessageService::pushMessageToUser($this->uid, $this->task->title, $this->task->content, $this->task->url);
+                $result = null;
+                try {
+                    $result = PushMessageService::pushMessageToUser($this->uid, $this->task->title, $this->task->content, $this->task->url);
+                }catch (\Exception $e){
+                    myLog('NewUserPushMsg')->error($e);
+                }
                 $log->push_time = now();
                 if ($result) {
                     $log->status = 3;