From 568950cba6e98313a30dea2e21226d0e21c97698 Mon Sep 17 00:00:00 2001 From: shiji <1913712590@qq.com> Date: Fri, 21 Jul 2023 14:50:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/jeecg/modules/task/controller/TaskController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/controller/TaskController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/controller/TaskController.java index 28b30e7..ec843ed 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/controller/TaskController.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/controller/TaskController.java @@ -258,7 +258,9 @@ public class TaskController extends JeecgController { avatars.append(byId.getAvatar()).append(","); } - avatars = new StringBuilder(avatars.substring(0, avatars.length() - 1)); + if (avatars.length() != 0) { + avatars = new StringBuilder(avatars.substring(0, avatars.length() - 1)); + } e.setHeadpic(avatars.toString()); }