fix bili live sign time sleep

This commit is contained in:
Yutousama 2022-10-15 11:16:31 +08:00
parent 6de3f5d738
commit 5d2d41f176

View File

@ -38,6 +38,11 @@ public class BiliBiliLive extends Model {
Set<String> biliLive = RedisTools.list_get("bili_live");
StringBuilder builder = new StringBuilder();
for (String id : biliLive) {
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
boolean sign = BiliBiliUtils.sendLiveDanmu(Integer.parseInt(id), "打卡");
builder.append("BiliLiveSign ").append(id).append(":").append(sign).append("\n");
}