fix:新增用户

上级 7c2085c3
...@@ -66,7 +66,7 @@ public class CsdnUserController { ...@@ -66,7 +66,7 @@ public class CsdnUserController {
if (StringUtils.isNotEmpty(nickName)) { if (StringUtils.isNotEmpty(nickName)) {
wrapper.like("nick_name", nickName); wrapper.like("nick_name", nickName);
} }
wrapper.orderByDesc("user_weight").orderByDesc("update_time"); wrapper.orderByDesc("update_time");
return Result.ok(CsdnUserInfoDTO.Converter.INSTANCE.from(this.csdnUserInfoService.page(pageParm, wrapper))); return Result.ok(CsdnUserInfoDTO.Converter.INSTANCE.from(this.csdnUserInfoService.page(pageParm, wrapper)));
} }
......
...@@ -106,6 +106,7 @@ public class CsdnAutoReplyServiceImpl implements CsdnAutoReplyService { ...@@ -106,6 +106,7 @@ public class CsdnAutoReplyServiceImpl implements CsdnAutoReplyService {
csdnUserInfo.setCollectStatus(0); csdnUserInfo.setCollectStatus(0);
csdnUserInfo.setCommentStatus(0); csdnUserInfo.setCommentStatus(0);
csdnUserInfo.setUserWeight(7); csdnUserInfo.setUserWeight(7);
csdnUserInfo.setUserHomeUrl("https://blog.csdn.net/" + userName);
csdnUserInfoService.save(csdnUserInfo); csdnUserInfoService.save(csdnUserInfo);
} }
csdnService.singleArticle(csdnUserInfo); csdnService.singleArticle(csdnUserInfo);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册