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'])){