Commit 88fa6bec authored by 李健华's avatar 李健华

撞库hash

parent 37546f7c
...@@ -205,7 +205,8 @@ public class InnerController implements IBaseController { ...@@ -205,7 +205,8 @@ public class InnerController implements IBaseController {
@GetMapping("/user/search/hash2") @GetMapping("/user/search/hash2")
@ApiOperation(httpMethod = "GET", value = "根据md5(手机号)或md5(身份证号)查询用户信息") @ApiOperation(httpMethod = "GET", value = "根据md5(手机号)或md5(身份证号)查询用户信息")
public JsonResult findByHash(@RequestParam String md5Value, public JsonResult findByHash(@RequestParam String md5Value,
@RequestParam(defaultValue = "1") Integer type) { @RequestParam(defaultValue = "1") Integer type,
@RequestParam(required = false) Integer tenantId) {
if (md5Value == null) { if (md5Value == null) {
return JsonResult.buildErrorStateResult("参数错误", null); return JsonResult.buildErrorStateResult("参数错误", null);
} }
...@@ -217,6 +218,13 @@ public class InnerController implements IBaseController { ...@@ -217,6 +218,13 @@ public class InnerController implements IBaseController {
if (user == null) { if (user == null) {
return JsonResult.buildSuccessResult("", null); return JsonResult.buildSuccessResult("", null);
} }
if (tenantId != null && !TenantUtil.TENANT_DEFAULT.equals(tenantId)) {
// userId 查询对应productLogin 获取手机号和customerId
user = tenantService.getTenantUser(user, tenantId);
if (user == null ) {
return JsonResult.buildErrorStateResult("", null);
}
}
UserRet userRet = new UserRet(user); UserRet userRet = new UserRet(user);
return JsonResult.buildSuccessResult("", userRet); return JsonResult.buildSuccessResult("", userRet);
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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