修复空字符串判断错误代码

This commit is contained in:
Yutou 2024-01-17 15:49:45 +08:00
parent 2000efdd55
commit 68fd6efdf4
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication @SpringBootApplication
public class QQBotApplication { public class QQBotApplication {
public static final String version="QQBot v.1.6.1"; public static final String version="QQBot v.1.6.2";
public static void main(String[] args) { public static void main(String[] args) {
System.out.println("version = " + version); System.out.println("version = " + version);
SpringApplication.run(QQBotApplication.class, args); SpringApplication.run(QQBotApplication.class, args);

View File

@ -66,7 +66,7 @@ public class BiliVideo extends Model {
int id = ((QuoteReply) event.getMessage().get(1)).getSource().getIds()[0]; int id = ((QuoteReply) event.getMessage().get(1)).getSource().getIds()[0];
if (msg.contains("省流") || msg.contains("总结")) { if (msg.contains("省流") || msg.contains("总结")) {
String value = onAIVideo(id); String value = onAIVideo(id);
if(StringUtils.isEmpty(value)){ if(!StringUtils.isEmpty(value)){
QQBotManager.getInstance().sendMessage(qq,value); QQBotManager.getInstance().sendMessage(qq,value);
} }
} }