From 8dff5bf7bf7fb9f9ddf6461dda3c3a6ca728716a Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Tue, 12 Apr 2022 12:40:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E6=97=B6=E6=95=B0=E6=8D=AE=EF=BC=9A?= =?UTF-8?q?=E7=A7=BB=E9=99=A4=E8=A7=82=E4=BC=97=E3=80=81=E7=A4=BC=E7=89=A9?= =?UTF-8?q?=E5=88=97=E8=A1=A8(=E4=BC=9A=E5=8D=A1=EF=BC=8C=E6=87=92?= =?UTF-8?q?=E5=BE=97=E4=BF=AE=E4=BA=86)=20=E4=BF=AE=E5=A4=8D=E7=9B=B4?= =?UTF-8?q?=E6=92=AD=E7=8A=B6=E6=80=81=E6=97=A0=E6=B3=95=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Web/html/body/bilibili/realTimeData.html | 8 ++++---- .../mybatis/Bili/mybatis/model/BilibiliUpInfo.java | 7 +++++++ 2 files changed, 11 insertions(+), 4 deletions(-) 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