|
@ -129,7 +129,10 @@ public class WechatController extends WeixinBaseController {
|
|
|
// return error(-1, "该手机号已被注册");
|
|
|
//}
|
|
|
// 解密身份证号
|
|
|
idcard = RSAUtils.getInstance(patientService).decryptString(idcard);
|
|
|
//idcard = RSAUtils.getInstance(patientService).decryptString(idcard);
|
|
|
rsaUtils.setBaseService(patientService);
|
|
|
idcard =rsaUtils.decryptString(idcard);
|
|
|
|
|
|
idcard = URLDecoder.decode(idcard, "UTF-8");
|
|
|
idcard = StringUtils.reverse(idcard);
|
|
|
// 校验身份证号
|
|
@ -167,6 +170,7 @@ public class WechatController extends WeixinBaseController {
|
|
|
}
|
|
|
return write(200, "验证成功");
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "验证失败");
|
|
|
}
|
|
|
}
|