From b00b505a65dbb1f313b6ac5419cbd925b799f148 Mon Sep 17 00:00:00 2001 From: linfeng <2445465217@qq.com> Date: Tue, 7 May 2024 08:57:57 +0800 Subject: [PATCH] update AppUserServiceImpl.java --- .../modules/admin/service/impl/AppUserServiceImpl.java | 4 ++-- src/main/resources/application-prod.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/io/linfeng/modules/admin/service/impl/AppUserServiceImpl.java b/src/main/java/io/linfeng/modules/admin/service/impl/AppUserServiceImpl.java index 7609dbc..c7f8d3b 100644 --- a/src/main/java/io/linfeng/modules/admin/service/impl/AppUserServiceImpl.java +++ b/src/main/java/io/linfeng/modules/admin/service/impl/AppUserServiceImpl.java @@ -259,7 +259,7 @@ public class AppUserServiceImpl extends ServiceImpl i public AppPageUtils userFans(Integer currPage, Integer uid) { List uidList = followService.getFansList(uid); if (uidList.isEmpty()) { - return new AppPageUtils(null, 0, 20, currPage); + return new AppPageUtils(new ArrayList<>(), 0, 20, currPage); } Page page = new Page<>(currPage, 20); QueryWrapper queryWrapper1 = new QueryWrapper<>(); @@ -284,7 +284,7 @@ public class AppUserServiceImpl extends ServiceImpl i public AppPageUtils follow(Integer currPage, AppUserEntity user) { List followUids = followService.getFollowUids(user); if (followUids.isEmpty()) { - return new AppPageUtils(null, 0, 20, currPage); + return new AppPageUtils(new ArrayList<>(), 0, 20, currPage); } Page page = new Page<>(currPage, 20); QueryWrapper queryWrapper1 = new QueryWrapper<>(); diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index 6c63053..fdac404 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -21,8 +21,8 @@ spring: enabled: true url-pattern: /druid/* #数据库监控账号密码 线上环境需开启 - login-username: admin - login-password: admin + login-username: linfengcommunity + login-password: linfengcommunity filter: stat: log-slow-sql: true