fix int.parseInt

This commit is contained in:
Yutousama 2022-10-15 11:10:46 +08:00
parent 28167c7f49
commit 6de3f5d738

View File

@ -38,7 +38,7 @@ public class BiliBiliLive extends Model {
Set<String> biliLive = RedisTools.list_get("bili_live"); Set<String> biliLive = RedisTools.list_get("bili_live");
StringBuilder builder = new StringBuilder(); StringBuilder builder = new StringBuilder();
for (String id : biliLive) { for (String id : biliLive) {
boolean sign = BiliBiliUtils.sendLiveDanmu(Integer.getInteger(id), "打卡"); boolean sign = BiliBiliUtils.sendLiveDanmu(Integer.parseInt(id), "打卡");
builder.append("BiliLiveSign ").append(id).append(":").append(sign).append("\n"); builder.append("BiliLiveSign ").append(id).append(":").append(sign).append("\n");
} }
QQBotManager.getInstance().sendMessage(qq, builder.toString()); QQBotManager.getInstance().sendMessage(qq, builder.toString());
@ -51,6 +51,10 @@ public class BiliBiliLive extends Model {
if (!msg.startsWith(QQGroupCommands.BILI_LIVE_DANMU_SEND) && !msg.startsWith(QQGroupCommands.BILI_LIVE_DANMU_DEL)) { if (!msg.startsWith(QQGroupCommands.BILI_LIVE_DANMU_SEND) && !msg.startsWith(QQGroupCommands.BILI_LIVE_DANMU_DEL)) {
return; return;
} }
if(msg.equals(QQGroupCommands.BILI_LIVE_DANMU_SEND+"debug")){
onTime(qq,"00:01:00");
return;
}
StringBuilder message; StringBuilder message;
message = new StringBuilder(); message = new StringBuilder();
try { try {