From 20cd849f7152aea30761fb3f35d4f6bf60ff10d8 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Thu, 24 Aug 2023 15:36:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=97=AE=E8=AF=8A=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Common/Common.php | 2 ++ app/Services/MessagePush.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Common/Common.php b/app/Common/Common.php index 41da95f..bff6f43 100644 --- a/app/Common/Common.php +++ b/app/Common/Common.php @@ -170,6 +170,8 @@ function inquiryTypeToString(int|string $inquiry_type): string $result = "公益问诊"; } elseif ($inquiry_type == 4) { $result = "问诊购药"; + } elseif ($inquiry_type == 5) { + $result = "检测问诊"; } else { $result = "未知"; } diff --git a/app/Services/MessagePush.php b/app/Services/MessagePush.php index d41779c..fc78f05 100644 --- a/app/Services/MessagePush.php +++ b/app/Services/MessagePush.php @@ -445,7 +445,7 @@ class MessagePush extends BaseService if (!$result) { Log::getInstance("MessagePush")->error("错误:加入推送队列失败" . json_encode($data, JSON_UNESCAPED_UNICODE)); } - } catch (\Exception $e) { + } catch (\Throwable $e) { Log::getInstance("MessagePush")->error("错误:加入推送队列失败" . $e->getMessage()); } }