|
|
@@ -135,7 +135,7 @@ public class JobUserApiController {
|
|
|
jobUser.setCreateTime(new Date());
|
|
|
jobUser.setDelFlag(false);
|
|
|
jobUser.setHeadImageUrl("http://xpgj.oss-cn-shanghai.aliyuncs.com/xpgj/test/default_avatar.jpg");
|
|
|
- jobUser.setIsAuthentication(false);
|
|
|
+ jobUser.setIsAuthentication("0");
|
|
|
jobUser.setOpenId(openId);
|
|
|
|
|
|
jobUserService.insert(jobUser);
|
|
|
@@ -237,7 +237,7 @@ public class JobUserApiController {
|
|
|
jobUser.setCreateTime(new Date());
|
|
|
jobUser.setDelFlag(false);
|
|
|
jobUser.setHeadImageUrl("http://xpgj.oss-cn-shanghai.aliyuncs.com/xpgj/test/default_avatar.jpg");
|
|
|
- jobUser.setIsAuthentication(false);
|
|
|
+ jobUser.setIsAuthentication("0");
|
|
|
jobUser.setOpenId(openId);
|
|
|
|
|
|
jobUserService.insert(jobUser);
|
|
|
@@ -447,12 +447,12 @@ public class JobUserApiController {
|
|
|
|
|
|
@PostMapping("authenticationStatus")
|
|
|
@ApiOperation(value = "用户认证状态")
|
|
|
- public MessageResult<Boolean> authenticationStatus(String token, @RequestAttribute String subject) {
|
|
|
- MessageResult<Boolean> messageResult = new MessageResult<>();
|
|
|
+ public MessageResult<String> authenticationStatus(String token, @RequestAttribute String subject) {
|
|
|
+ MessageResult<String> messageResult = new MessageResult<>();
|
|
|
|
|
|
try {
|
|
|
JobUser jobUser = jobUserService.get(subject);
|
|
|
- Boolean returnIs = false;
|
|
|
+ String returnIs = "";
|
|
|
if(jobUser != null){
|
|
|
returnIs = jobUser.getIsAuthentication();
|
|
|
}
|
|
|
@@ -499,6 +499,7 @@ public class JobUserApiController {
|
|
|
jobUser.setIdCard(idCard);
|
|
|
jobUser.setHeadImageUrl(positiveUrl+","+reverseUrl);
|
|
|
jobUser.setRealName(name);
|
|
|
+ jobUser.setIsAuthentication("2");//待审核
|
|
|
|
|
|
jobUserService.update(jobUser);
|
|
|
|