...
|
...
|
@@ -202,21 +202,6 @@ public class GrassUserServiceImpl implements IGrassUserService{ |
|
|
if(req.getId() != null){//修改资料
|
|
|
//1)修改马甲基本资料
|
|
|
virtualUserDao.updateByPrimaryKeySelective(virtualUser);
|
|
|
//2)修改基本信息(头像,签名等)
|
|
|
String url = uicUrl + "/UserInfoRest/updateUserBase";
|
|
|
UserBaseReqBO uicReq = new UserBaseReqBO();
|
|
|
uicReq.setUid(req.getUid());
|
|
|
uicReq.setNick_name(req.getNickName());
|
|
|
uicReq.setHeadIco(req.getHeadIcon());
|
|
|
logger.info("updateVirtualUser call uic.modifyUserBase url ={}, uicReq={}", url, uicReq);
|
|
|
//调uic 的接口(修改头像等)
|
|
|
serviceCaller.post("uic.modifyUserBase", url, uicReq, CommonRspBO.class, null).get();
|
|
|
//3)修改签名
|
|
|
GrassUserAchieve userAchieve = new GrassUserAchieve();
|
|
|
userAchieve.setUid(req.getUid());
|
|
|
userAchieve.setUserType(1);
|
|
|
userAchieve.setSignature(req.getSignature());
|
|
|
insertOrUpateUserAchieve(userAchieve);
|
|
|
logger.info("updateVirtualUser success! req={}",req);
|
|
|
}else{//新增马甲资料
|
|
|
GrassVirtualUser oldVirtual = virtualUserDao.selectByUid(req.getUid());
|
...
|
...
|
@@ -231,10 +216,20 @@ public class GrassUserServiceImpl implements IGrassUserService{ |
|
|
GrassUserAchieve userAchieve = new GrassUserAchieve();
|
|
|
userAchieve.setUid(req.getUid());
|
|
|
userAchieve.setUserType(1);
|
|
|
userAchieve.setSignature(req.getSignature());
|
|
|
insertOrUpateUserAchieve(userAchieve);
|
|
|
logger.info("updateVirtualUser add new user success! req={}",req);
|
|
|
}
|
|
|
|
|
|
//2)修改基本信息(头像,签名等)--后期修改(签名采用uic的签名,grass里的签名丢弃)
|
|
|
String url = uicUrl + "/UserInfoRest/updateUserBase";
|
|
|
UserBaseReqBO uicReq = new UserBaseReqBO();
|
|
|
uicReq.setUid(req.getUid());
|
|
|
uicReq.setNick_name(req.getNickName());
|
|
|
uicReq.setHeadIco(req.getHeadIcon());
|
|
|
uicReq.setSignature(req.getSignature() == null ? "" : req.getSignature());
|
|
|
logger.info("updateVirtualUser call uic.modifyUserBase url ={}, uicReq={}", url, uicReq);
|
|
|
//调uic 的接口(修改头像等)
|
|
|
serviceCaller.post("uic.modifyUserBase", url, uicReq, CommonRspBO.class, null).get();
|
|
|
return new ApiResponse.ApiResponseBuilder().build();
|
|
|
}
|
|
|
|
...
|
...
|
|