From 5e3f9e9aee188a1013627846d7233b9528b935bd Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Mon, 8 Apr 2019 18:33:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E4=B8=8D=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E8=A7=86=E9=A2=91=EF=BC=88=E5=BE=85=E6=B5=8B=E8=AF=95=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebMain.py | 2 ++ static/index.html | 6 +++++- static/index.js | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/WebMain.py b/WebMain.py index 22a9204..46107eb 100644 --- a/WebMain.py +++ b/WebMain.py @@ -73,6 +73,7 @@ def getAllStats(): "config": { "forceNotBroadcasting": Common.forceNotBroadcasting, "forceStopDownload": Common.forceStopDownload, + "forceNotUpload": Common.forceNotUpload, } }}) @@ -95,6 +96,7 @@ def getConfigStats(): "config": { "forceNotBroadcasting": Common.forceNotBroadcasting, "forceStopDownload": Common.forceStopDownload, + "forceNotUpload": Common.forceNotUpload, } }}) diff --git a/static/index.html b/static/index.html index a457651..37e2266 100644 --- a/static/index.html +++ b/static/index.html @@ -31,6 +31,7 @@ +

特殊设置

@@ -41,6 +42,10 @@ + + + +
是否设置强制不下载
是否设置强制不上传

当前状态

@@ -66,7 +71,6 @@ -
diff --git a/static/index.js b/static/index.js index 86f19b6..e1f72f8 100644 --- a/static/index.js +++ b/static/index.js @@ -8,6 +8,7 @@ function update(){ $("#streamUrl").text(res.data.broadcast.streamUrl) $("#forceNotBroadcasting").text(res.data.config.forceNotBroadcasting) $("#forceStopDownload").text(res.data.config.forceStopDownload) + $("#forceNotUpload").text(res.data.config.forceNotUpload) $("#updateTime").text(res.data.broadcast.updateTime) $("#download").html(function(){ var ret = ""