Commit 9a3b67f0 authored by guangjing.gao's avatar guangjing.gao

统一校验处理租户ID

parent 3e027ee0
...@@ -454,7 +454,7 @@ public class UserController implements IBaseController { ...@@ -454,7 +454,7 @@ public class UserController implements IBaseController {
if (TenantUtil.checkoutTenantIsDefault(tenantId)) { if (TenantUtil.checkoutTenantIsDefault(tenantId)) {
user = tenantService.getTenantUser(user, tenantId); user = tenantService.getTenantUser(user, tenantId);
if (user == null) { if (user == null) {
return JsonResult.buildErrorStateResult("查无此人", null); return JsonResult.buildSuccessResult(null, result);
} }
} }
String phoneNo = user.getPhoneNo(); String phoneNo = user.getPhoneNo();
......
...@@ -78,9 +78,9 @@ public class UserController { ...@@ -78,9 +78,9 @@ public class UserController {
/** /**
* 根据uuid或者userids 获取用户信息 * 根据uuid或者userids 获取用户信息
* * @yapi http://yapi.quantgroups.com/project/17/interface/api/29902
* @param params * @param params
* @return http://yapi.quantgroups.com/project/17/interface/api/29902 * @return
*/ */
@PostMapping("/getByUuidsOrUserIds") @PostMapping("/getByUuidsOrUserIds")
public JsonResult getByUuidsOrUserIds(@RequestBody Map<String, Object> params) { public JsonResult getByUuidsOrUserIds(@RequestBody Map<String, Object> params) {
......
...@@ -19,6 +19,11 @@ public class WxController { ...@@ -19,6 +19,11 @@ public class WxController {
@Resource @Resource
private IWechatService wechatService; private IWechatService wechatService;
/**
* http://open.quantgroups.com/project/59/interface/api/693
* @param userId
* @return
*/
@GetMapping("/userId/{userId}") @GetMapping("/userId/{userId}")
public JsonResult openId(@PathVariable Long userId) { public JsonResult openId(@PathVariable Long userId) {
WechatUserInfo wechatUserInfo = wechatService.queryByUserId(userId); WechatUserInfo wechatUserInfo = wechatService.queryByUserId(userId);
...@@ -37,7 +42,11 @@ public class WxController { ...@@ -37,7 +42,11 @@ public class WxController {
return JsonResult.buildSuccessResultGeneric(wechatUserInfo.getOpenId()); return JsonResult.buildSuccessResultGeneric(wechatUserInfo.getOpenId());
} }
/**
* http://open.quantgroups.com/project/59/interface/api/693
* @param phoneNo
* @return
*/
@GetMapping("/phoneNo/{phoneNo}") @GetMapping("/phoneNo/{phoneNo}")
public JsonResult openId(@PathVariable String phoneNo) { public JsonResult openId(@PathVariable String phoneNo) {
WechatUserInfo wechatUserInfo = wechatService.findWechatUserInfoByPhoneNo(phoneNo); WechatUserInfo wechatUserInfo = wechatService.findWechatUserInfoByPhoneNo(phoneNo);
......
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