add 新增了批量订阅 add
This commit is contained in:
19
Web/js/Chart.min.js
vendored
19
Web/js/Chart.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -17,6 +17,7 @@ function getParam(name){
|
||||
}
|
||||
}
|
||||
function showImage(url, imgElement) {
|
||||
|
||||
getHttpImage(url)
|
||||
.then(imageUrl => {
|
||||
imgElement.src = imageUrl;
|
||||
@@ -27,6 +28,11 @@ function showImage(url, imgElement) {
|
||||
});
|
||||
}
|
||||
function showTmpImage(url, imgElement) {
|
||||
console.log(url)
|
||||
if(!hasString(url)){
|
||||
imgElement.src='/assets/def.png'
|
||||
return
|
||||
}
|
||||
getHttpTmpImage(url)
|
||||
.then(blob => {
|
||||
imgElement.src ="data:image/jpeg;base64,"+blob;
|
||||
@@ -38,4 +44,17 @@ function showTmpImage(url, imgElement) {
|
||||
}
|
||||
function hasString(text){
|
||||
return !!text;
|
||||
}
|
||||
function formatDate(timestamp) {
|
||||
const date = new Date(timestamp);
|
||||
const padZero = (num) => (num < 10 ? '0' + num : num);
|
||||
|
||||
const year = date.getFullYear();
|
||||
const month = padZero(date.getMonth() + 1);
|
||||
const day = padZero(date.getDate());
|
||||
const hours = padZero(date.getHours());
|
||||
const minutes = padZero(date.getMinutes());
|
||||
const seconds = padZero(date.getSeconds());
|
||||
|
||||
return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
|
||||
}
|
||||
@@ -112,7 +112,23 @@ function getRoomConfig(roomId){
|
||||
function deleteRoomConfig(roomId){
|
||||
return get("/live/config/delete?roomId="+roomId)
|
||||
}
|
||||
|
||||
function checkFollowStatus(userId){
|
||||
return get("/live/config/follow/check?userId="+userId)
|
||||
}
|
||||
function confirmFollowStatus(userId){
|
||||
return get("/live/config/follow/confirm?userId="+userId)
|
||||
}
|
||||
function addAllFollow(userId){
|
||||
return get("/live/config/follow/all?userId="+userId)
|
||||
}
|
||||
function addFollow(uid,anchorId){
|
||||
return get("/live/config/follow/add?anchorId="+anchorId+"&uid="+uid)
|
||||
}
|
||||
function addFollowList(uid,array){
|
||||
const formData = new FormData();
|
||||
formData.append("array", array);
|
||||
return post("/live/config/follow/addList?uid="+uid,formData,true)
|
||||
}
|
||||
//----------------直播配置相关接口end
|
||||
//----------------首页相关接口
|
||||
function getAllLive(page,limit){
|
||||
@@ -154,4 +170,12 @@ function getBiliAllUser(){
|
||||
function login(){
|
||||
return get("/user/login")
|
||||
}
|
||||
//----------------用户相关接口end
|
||||
function refreshCookie(userId){
|
||||
return get("/user/refreshCookie?uid="+userId)
|
||||
}
|
||||
//----------------用户相关接口end
|
||||
//----------------礼物相关接口
|
||||
function getVideoGiftInfo(roomId,videoId){
|
||||
return get("/live/gift/info?roomId="+roomId+"&videoId="+videoId)
|
||||
}
|
||||
//----------------礼物相关接口end
|
||||
Reference in New Issue
Block a user