Authored by mlge

种草--用户身份管理 简介更改为签名

... ... @@ -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();
}
... ...
... ... @@ -31,7 +31,7 @@
<tr style="height: 60px">
<td>
<label>简介</label> <br>
<label>签名</label> <br>
<textarea id="signature" name="signature" style="width: 380px;" rows="6" placeholder=""
required="true" maxlength="500"></textarea>
</td>
... ...
... ... @@ -200,7 +200,7 @@
return '<div><img style="width: 60px;height: 60px" src="'+value+'?imageView/2/w/60/h/60"/></div>';
}
}, {
title: "简介",
title: "签名",
field: "signature",
width: 35,
align: "left"
... ...