diff --git a/src/Notice/Notice.php b/src/Notice/Notice.php index 2a4ac3f..a13a1d7 100644 --- a/src/Notice/Notice.php +++ b/src/Notice/Notice.php @@ -268,8 +268,8 @@ class Notice extends SingleTon $raw = Request::post('other', $url, $payload); $de_raw = json_decode($raw, true); - if ($de_raw['errno'] == 0) { - Log::notice("推送消息成功: {$de_raw['errmsg']}"); + if (isset($de_raw['data']['errno']) && $de_raw['data']['errno'] == 0) { + Log::notice("推送消息成功: {$de_raw['data']['errmsg']}"); } else { Log::warning("推送消息失败: $raw"); }