fix B站添加直播间失败

This commit is contained in:
Yutousama 2022-10-14 21:14:11 +08:00
parent 07361fb616
commit 3d730206b9

View File

@ -61,7 +61,7 @@ public class BiliBiliLive extends Model {
} else {
msg = msg.replace(QQGroupCommands.BILI_LIVE_DANMU_SEND, "").trim();
}
Integer roomId = Integer.getInteger(msg);
Integer roomId = Integer.parseInt(msg);
if (BiliBiliUtils.checkLiveRoom(roomId)) {
if (isDel && RedisTools.list_isExist("bili_live", roomId + "")) {
RedisTools.list_remove("bili_live", roomId + "");