From 7ac9d1b18832b3326df72bac786c06ef8280da7c Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Tue, 26 Apr 2022 07:32:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=A9=E5=9B=BE=E6=A8=A1=E5=9D=97=EF=BC=9A?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=9A=8F=E6=9C=BA=E8=89=B2=E5=9B=BE=E4=B8=8D?= =?UTF-8?q?=E8=A2=AB=E7=BB=9F=E8=AE=A1=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/yutou/qqbot/QQBotApplication.java | 2 +- src/main/java/com/yutou/qqbot/models/setu/GetSeTu.java | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/yutou/qqbot/QQBotApplication.java b/src/main/java/com/yutou/qqbot/QQBotApplication.java index c90681c..209e4ec 100644 --- a/src/main/java/com/yutou/qqbot/QQBotApplication.java +++ b/src/main/java/com/yutou/qqbot/QQBotApplication.java @@ -6,7 +6,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class QQBotApplication { - public static final String version="QQBot v.1.2.21"; + public static final String version="QQBot v.1.2.22"; public static void main(String[] args) { System.out.println("version = " + version); SpringApplication.run(QQBotApplication.class, args); diff --git a/src/main/java/com/yutou/qqbot/models/setu/GetSeTu.java b/src/main/java/com/yutou/qqbot/models/setu/GetSeTu.java index 9139b4c..03628b7 100644 --- a/src/main/java/com/yutou/qqbot/models/setu/GetSeTu.java +++ b/src/main/java/com/yutou/qqbot/models/setu/GetSeTu.java @@ -92,6 +92,9 @@ public class GetSeTu extends Model { builder.append(new At(qq)) .append(":\n"); for (String tag : list) { + if(StringUtils.isEmpty(tag)){ + tag="随机"; + } builder.append(tag).append("\n"); } builder.append("------------------\n");