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] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BA=AB=E4=BB=BD=E8=AF=81?= =?UTF-8?q?=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'])){