Skip to content

Commit

Permalink
Update Push.php
Browse files Browse the repository at this point in the history
  • Loading branch information
619096932 authored Jan 22, 2021
1 parent c523a06 commit 04ecec6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Push.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ public function toSingleCid(array $cid, NotificationMessage $message, $push_chan
'push_message' => $message->toArray(),
'push_channel' => $push_channel
])->send();
if (!(isset($data['msg']) && $data['msg'] === 'success' && isset($data['code']) && $data['code'] === 0)) {
throw new \Exception(isset($data['msg']) ? $data['msg'] : '接口错误');
}
return $data;
}

/**
Expand Down

0 comments on commit 04ecec6

Please sign in to comment.