实时数据:移除观众、礼物列表(会卡,懒得修了)

修复直播状态无法判断
This commit is contained in:
Yutousama 2022-04-12 12:40:54 +08:00
parent f164172bcf
commit 8dff5bf7bf
2 changed files with 11 additions and 4 deletions

View File

@ -65,7 +65,7 @@
</div>
</div>
</div>
<div class="layui-col-md-offset2"></div>
<!-- <div class="layui-col-md-offset2"></div>
<div class="layui-col-md12">
<div class="layui-card" style="width: 100%;height: 400px">
<div class="layui-card-header">观众列表</div>
@ -82,7 +82,7 @@
<table id="gifts" lay-filter="listTools"></table>
</div>
</div>
</div>
</div>-->
</div>
</div>
</div>
@ -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;

View File

@ -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;
}
}