|
@@ -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;
|