diff --git a/src/main/java/com/kwan/springbootkwan/controller/CsdnUserController.java b/src/main/java/com/kwan/springbootkwan/controller/CsdnUserController.java index 522f62ed7a4e8413aafcefd166da523da0837db1..e379c88fdc5b6015b31c187893dae92e11cecb71 100644 --- a/src/main/java/com/kwan/springbootkwan/controller/CsdnUserController.java +++ b/src/main/java/com/kwan/springbootkwan/controller/CsdnUserController.java @@ -66,7 +66,7 @@ public class CsdnUserController { if (StringUtils.isNotEmpty(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))); } diff --git a/src/main/java/com/kwan/springbootkwan/service/impl/CsdnAutoReplyServiceImpl.java b/src/main/java/com/kwan/springbootkwan/service/impl/CsdnAutoReplyServiceImpl.java index ea08884467ec1269108eaaea926c58eaedaf9773..13a123252e8fcde7e1ea263b00796aa004fe8749 100644 --- a/src/main/java/com/kwan/springbootkwan/service/impl/CsdnAutoReplyServiceImpl.java +++ b/src/main/java/com/kwan/springbootkwan/service/impl/CsdnAutoReplyServiceImpl.java @@ -106,6 +106,7 @@ public class CsdnAutoReplyServiceImpl implements CsdnAutoReplyService { csdnUserInfo.setCollectStatus(0); csdnUserInfo.setCommentStatus(0); csdnUserInfo.setUserWeight(7); + csdnUserInfo.setUserHomeUrl("https://blog.csdn.net/" + userName); csdnUserInfoService.save(csdnUserInfo); } csdnService.singleArticle(csdnUserInfo);