fix bili live sign time sleep
This commit is contained in:
parent
6de3f5d738
commit
5d2d41f176
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user