diff --git a/Web/html/body/bilibili/realTimeData.html b/Web/html/body/bilibili/realTimeData.html index 37aaa1d..0743d83 100644 --- a/Web/html/body/bilibili/realTimeData.html +++ b/Web/html/body/bilibili/realTimeData.html @@ -65,7 +65,7 @@ -
+ @@ -146,7 +146,7 @@ layer.close(index); return; } - table.render({ + /*table.render({ elem: '#gifts' ,height: 312 ,url: '/realTimeData/data.do?rid='+roomid+'&model=1' //数据接口 @@ -169,7 +169,7 @@ ,{field: 'msg', title: '内容', width:400, sort: true} ,{field: 'time', title: '时间', width: 200, sort: true} ]] - }); + });*/ let gifts = json.data.gift; let prices = json.data.price; let priceSize = 0; diff --git a/src/main/java/com/yutou/bilibili/mybatis/Bili/mybatis/model/BilibiliUpInfo.java b/src/main/java/com/yutou/bilibili/mybatis/Bili/mybatis/model/BilibiliUpInfo.java index de841eb..a752210 100644 --- a/src/main/java/com/yutou/bilibili/mybatis/Bili/mybatis/model/BilibiliUpInfo.java +++ b/src/main/java/com/yutou/bilibili/mybatis/Bili/mybatis/model/BilibiliUpInfo.java @@ -1,6 +1,8 @@ package com.yutou.bilibili.mybatis.Bili.mybatis.model; import java.io.Serializable; + +import com.yutou.bilibili.BiliBili.LiveUtils; import lombok.Data; /** @@ -40,4 +42,9 @@ public class BilibiliUpInfo implements Serializable { private Integer savelive=0; private static final long serialVersionUID = 1L; + + public Integer getLive() { + live= LiveUtils.getLiveState(roomid)?1:0; + return live; + } } \ No newline at end of file