|
|
@@ -60,10 +60,10 @@ public class IdentifyServiceImpl implements IdentifyService {
|
|
|
processImage(image1, "front", customerInfoVO);
|
|
|
// 处理 image2 (身份证背面)
|
|
|
processImage(image2, "back", customerInfoVO);
|
|
|
- // 校验是否成功识别身份证信息
|
|
|
- if (ObjectUtil.isAllFieldNull(customerInfoVO)) {
|
|
|
- throw new RuntimeException("身份证识别失败");
|
|
|
- }
|
|
|
+
|
|
|
+ // 校验身份证正反面识别是否成功
|
|
|
+ AssertionUtils.isEmpty(customerInfoVO, "身份证正反面识别失败");
|
|
|
+
|
|
|
resultMap.put("customerInfo", customerInfoVO);
|
|
|
return HttpResult.ok("success", resultMap);
|
|
|
}
|