Commit c4886288 authored by yanzg's avatar yanzg

身份证识别

parent 86d49974
......@@ -116,6 +116,20 @@ public class SfzhUtil {
return true;
}
/**
* 修复身份证号码
*
* @param idCard 身份编号
* @return 修复后的身份证号码
*/
public static String repair(String idCard) {
SfzInfo info = SERVICE.getInfo(idCard);
if (info == null) {
return idCard;
}
return info.getSfzHandle().repair(info.getCardId());
}
/**
* 获取身份证年龄,当没有获取到时,返回年龄为0
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment