记得上下班打卡 | git大法好,push需谨慎

Commit b07a6543 authored by 张国柄's avatar 张国柄

~api:用户身份信息调整;

parent d768cd41
...@@ -476,7 +476,12 @@ public class AdamUserController { ...@@ -476,7 +476,12 @@ public class AdamUserController {
@GetMapping(value = "info/identity") @GetMapping(value = "info/identity")
public ResponseDto<AdamUserIdentityInfoVo> identityInfoByMobile(@Pattern(regexp = "\\d{11}", message = "手机号格式有误") public ResponseDto<AdamUserIdentityInfoVo> identityInfoByMobile(@Pattern(regexp = "\\d{11}", message = "手机号格式有误")
@RequestParam(required = false) String mobile) { @RequestParam(required = false) String mobile) {
return this.identityInfoByUID(null == mobile ? CurrentUtil.getCurrentUid() : adamRdmService.getUidByMobile(mobile)); String uid = null == mobile ? CurrentUtil.getCurrentUid() : adamRdmService.getUidByMobile(mobile);
if (uid == null) {
log.warn("###用户不存在[mobile:{},uid:{},token:{}]", mobile, uid, CurrentUtil.getToken());
return ResponseDto.failure(ErrorMapping.get("10114"));
}
return this.identityInfoByUID(uid);
} }
@ApiOperationSupport(order = 12) @ApiOperationSupport(order = 12)
......
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