From 0152075fee4e2d18b8b98a69ad914ddfe50c0950 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Tue, 16 May 2023 09:55:42 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BA=AB=E4=BB=BD?= =?UTF-8?q?=E8=AF=81=E8=AE=A4=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/VerifyDun/IdCard.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/extend/VerifyDun/IdCard.php b/extend/VerifyDun/IdCard.php index 9d4580f..b0b0e11 100644 --- a/extend/VerifyDun/IdCard.php +++ b/extend/VerifyDun/IdCard.php @@ -40,7 +40,10 @@ class IdCard extends Base } if ($result['code'] != "200"){ - throw new BusinessException("姓名与身份证号不一致"); + if (!empty($result['msg'])){ + return $result['msg']; + } + return "身份证认证失败"; } if (empty($result['result'])){ From 58fa7187c93207d8cefe04202a2e7ab05687bb39 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Tue, 16 May 2023 10:01:38 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=89=93=E5=8D=B0=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E9=97=AE=E8=AF=8A=E8=AE=A2=E5=8D=95log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/InquiryService.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Services/InquiryService.php b/app/Services/InquiryService.php index 4b0e946..bed9b88 100644 --- a/app/Services/InquiryService.php +++ b/app/Services/InquiryService.php @@ -344,6 +344,7 @@ class InquiryService extends BaseService Db::commit(); } catch (\Exception $e) { Db::rollBack(); + Log::getInstance()->error("错误:" . $e->getMessage()); return fail(HttpEnumCode::HTTP_ERROR, $e->getMessage()); } From 145579067d428f5dd07048bb616e8ff0b74d2759 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Tue, 16 May 2023 10:02:25 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=89=93=E5=8D=B0=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E9=97=AE=E8=AF=8A=E8=AE=A2=E5=8D=95log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Factory/CacheFactory.php | 17 +++++++++++++++++ app/Factory/ProdRedisFactory.php | 10 ++++++++++ 2 files changed, 27 insertions(+) create mode 100644 app/Factory/CacheFactory.php create mode 100644 app/Factory/ProdRedisFactory.php diff --git a/app/Factory/CacheFactory.php b/app/Factory/CacheFactory.php new file mode 100644 index 0000000..9f3f0a0 --- /dev/null +++ b/app/Factory/CacheFactory.php @@ -0,0 +1,17 @@ +driver = $manager->getDriver('prod'); + } +} \ No newline at end of file diff --git a/app/Factory/ProdRedisFactory.php b/app/Factory/ProdRedisFactory.php new file mode 100644 index 0000000..1c3d17f --- /dev/null +++ b/app/Factory/ProdRedisFactory.php @@ -0,0 +1,10 @@ +