Commit 91d34068 authored by zhangzhenbang's avatar zhangzhenbang

单独实名认证

parent 35a6bc82
......@@ -190,18 +190,20 @@ public class IdentityInfoController {
info.setFaceImage(
PicUtils.compressImage(info.getFaceImage(),
Const.FACE_IMG_SIZE));
try {
if (!authService.is0x42AuthSucc(info)) {
return Response.fail("AUTH-FAILED","实名认证失败。");
}
} catch (Exception e) {
LOGGER.error("身份认证异常:", e);
return Response.fail("AUTH-FAILED","实名认证失败。");
}
// try {
// if (!authService.is0x42AuthSucc(info)) {
// return Response.fail("AUTH-FAILED","实名认证失败。");
// }
// } catch (Exception e) {
// LOGGER.error("身份认证异常:", e);
// return Response.fail("AUTH-FAILED","实名认证失败。");
// }
try {
info.setIsAuthed(1);
return identityInformationService.updateIdentityVerificationById(info)>0?Response.succ():Response.fail();
// return identityInformationService.updateIdentityVerificationById(info)>0?Response.succ():Response.fail();
identityInformationService.updateIdentityVerificationById(info);
return Response.succ();
} catch (Exception e) {
LOGGER.error("身份认证数据update异常:", e);
return Response.fail("UNKNOWN-ERROR", "系统繁忙,请稍后重试。");
......
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