Merge branch 'dev'
This commit is contained in:
@@ -51,13 +51,4 @@ public class LoginContoller {
|
|||||||
@RequestHeader("clientType") String clientType){
|
@RequestHeader("clientType") String clientType){
|
||||||
return loginService.getShopInfo(token);
|
return loginService.getShopInfo(token);
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping(value = "getPhone")
|
|
||||||
public Result getPhone( @RequestBody Map<String, String> map){
|
|
||||||
if (CollectionUtils.isEmpty(map) || !map.containsKey("userId")) {
|
|
||||||
return Result.fail("id不允许为空");
|
|
||||||
}
|
|
||||||
return loginService.getPhone(Integer.valueOf(map.get("userId").toString()));
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -188,12 +188,4 @@ public class LoginService {
|
|||||||
|
|
||||||
return Result.success(SUCCESS,shopInfo);
|
return Result.success(SUCCESS,shopInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Result getPhone(Integer userId) {
|
|
||||||
TbUserInfo userInfo = userInfoMapper.selectByPrimaryKey(userId);
|
|
||||||
if (userInfo != null) {
|
|
||||||
return Result.success(SUCCESS, userInfo.getTelephone());
|
|
||||||
}
|
|
||||||
return Result.success(SUCCESS, "");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user