diff --git a/users/src/main/java/com/huoran/users/controller/AliRealNameAuthenticationController.java b/users/src/main/java/com/huoran/users/controller/AliRealNameAuthenticationController.java index b5087ca..6dde4d0 100644 --- a/users/src/main/java/com/huoran/users/controller/AliRealNameAuthenticationController.java +++ b/users/src/main/java/com/huoran/users/controller/AliRealNameAuthenticationController.java @@ -19,6 +19,7 @@ import org.springframework.web.bind.annotation.*; import javax.servlet.http.HttpServletRequest; import java.io.IOException; +import java.util.Date; import java.util.Optional; @Api(value = "小程序-实名认证", tags = "小程序-实名认证") @@ -87,6 +88,11 @@ public class AliRealNameAuthenticationController { throw new RuntimeException(info.getRespMessage()); } + //设置用户当前认证时间 + userAuthenticationInformation.setRealNameAuthenticationTime(new Date()); + userAuthenticationInformation.setProvince(info.getProvince()); + userAuthenticationInformation.setCity(info.getCity()); + userAuthenticationInformation.setCounty(info.getCounty()); boolean addState = service.save(userAuthenticationInformation); return addState ? R.ok() : R.error("认证失败"); diff --git a/users/src/main/java/com/huoran/users/entity/UserAuthenticationInformation.java b/users/src/main/java/com/huoran/users/entity/UserAuthenticationInformation.java index 41af46b..9f0bd77 100644 --- a/users/src/main/java/com/huoran/users/entity/UserAuthenticationInformation.java +++ b/users/src/main/java/com/huoran/users/entity/UserAuthenticationInformation.java @@ -42,10 +42,10 @@ public class UserAuthenticationInformation implements Serializable { private String idCardNo; @ApiModelProperty(value = "生日") - private Date birthday; + private String birthday; - @ApiModelProperty(value = "年龄") - private Integer age; + /*@ApiModelProperty(value = "年龄") + private Integer age;*/ @ApiModelProperty(value = "性别") private String sex; @@ -65,11 +65,11 @@ public class UserAuthenticationInformation implements Serializable { @ApiModelProperty(value = "民族") private String nationality; - @ApiModelProperty(value = "有效期起始时间") - private Date startDate; + @ApiModelProperty(value = "身份证有效期起始时间") + private String startDate; - @ApiModelProperty(value = "有效期结束时间") - private Date endDate; + @ApiModelProperty(value = "身份证有效期结束时间") + private String endDate; @ApiModelProperty(value = "签发机关") private String issue;