|
|
@ -282,18 +282,7 @@ public class UserInfoService {
|
|
|
|
+ jwtUtil.createJWT(userInfo.getId(), userInfo.getNickName(), Constants.TOKEN_ROLE_APP_USER, userInfo.getAvatar());
|
|
|
|
+ jwtUtil.createJWT(userInfo.getId(), userInfo.getNickName(), Constants.TOKEN_ROLE_APP_USER, userInfo.getAvatar());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public Result setPhoneNumber(String userid, String phoneNumber){
|
|
|
|
|
|
|
|
UserInfo userbyId = userInfoDao.getById(userid);
|
|
|
|
|
|
|
|
if(userbyId == null)
|
|
|
|
|
|
|
|
return Result.failed(StatusCode.USER_INVALID_USER_ID);
|
|
|
|
|
|
|
|
userbyId.setMobile(phoneNumber);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UserInfo save = userInfoDao.save(userbyId);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(save != null)
|
|
|
|
|
|
|
|
return Result.success();
|
|
|
|
|
|
|
|
return Result.failed();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public List<UserInfo> orderByField(List<String> idList) {
|
|
|
|
public List<UserInfo> orderByField(List<String> idList) {
|
|
|
|
return userInfoDao.orderByField(idList);
|
|
|
|
return userInfoDao.orderByField(idList);
|
|
|
|