From cf38da15bf3691167c28a712cbba8857130eb483 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=A6=E8=8B=B1=E6=9D=B0?= <327782001@qq.com> Date: Sat, 28 Oct 2023 18:22:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=96=B0=E5=A2=9E=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/kwan/springbootkwan/controller/CsdnUserController.java | 2 +- .../springbootkwan/service/impl/CsdnAutoReplyServiceImpl.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/kwan/springbootkwan/controller/CsdnUserController.java b/src/main/java/com/kwan/springbootkwan/controller/CsdnUserController.java index 522f62e..e379c88 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 ea08884..13a1232 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); -- GitLab