From 360ce63073b68b1cd2aee8d76290de41e1bb104e Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Thu, 27 Apr 2023 11:38:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=89=A9=E6=B5=81=E5=8F=91?= =?UTF-8?q?=E8=B4=A7=E4=BF=A1=E6=81=AF=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/Kuaidi100/Kuaidi.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/extend/Kuaidi100/Kuaidi.php b/extend/Kuaidi100/Kuaidi.php index 43c1309..62801c7 100644 --- a/extend/Kuaidi100/Kuaidi.php +++ b/extend/Kuaidi100/Kuaidi.php @@ -87,8 +87,12 @@ class Kuaidi throw new BusinessException(HttpEnumCode::getMessage(HttpEnumCode::SERVER_ERROR)); } - dump($body); if ($body['returnCode'] != 200) { + // 重复订阅-不做处理 + if ($body['returnCode'] == 501){ + return $body; + } + // 请求失败 if (!empty($body['message'])) { throw new BusinessException($body['message']);