From d0277f9ddb79a9d36ff508043179bf8d6286e25b Mon Sep 17 00:00:00 2001 From: Lkeme <19500576+lkeme@users.noreply.github.com> Date: Thu, 19 Jan 2023 17:21:02 +0800 Subject: [PATCH] [fix] scSend --- src/Notice/Notice.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"); }