From 80825b2fc2580276356a0e9b7d3b43878f63af01 Mon Sep 17 00:00:00 2001
From: imgyh <1974355683@qq.com>
Date: Sun, 5 Mar 2023 20:27:08 +0800
Subject: [PATCH] =?UTF-8?q?refactor(web):=20=E4=BC=98=E5=8C=96=E5=89=8D?=
=?UTF-8?q?=E7=AB=AF=E7=BB=86=E8=8A=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
static/js/custom.js | 3 ++-
templates/index.html | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/static/js/custom.js b/static/js/custom.js
index 20cd73d..ea832a9 100644
--- a/static/js/custom.js
+++ b/static/js/custom.js
@@ -16,6 +16,7 @@ function SendAjax() {
if (result.status_code === 200) {
if (result.awemeType === 0) {
$("#awemeType").html("预览视频");
+ $("#AwemeOrLive").html("下载视频");
$("#video").attr("href", result.video.play_addr.url_list);
$("#pre_video").attr("src", result.video.play_addr.url_list);
$("#video").attr("style", "display:inline;");//显示 video
@@ -95,12 +96,12 @@ function SendAjax() {
if (result.awemeType === 2) {
if (result.status === 4) {
- console.log("进入")
$("#loading").attr("style", "display:none;");//隐藏 loading
$("#download").attr("style", "display:none;");//隐藏 download
// 执行弹框
narnWarn()
} else {
+ $("#AwemeOrLive").html("下载直播");
$("#awemeType").html("预览直播");
$("#video").attr("href", result.flv_pull_url0);
$("#pre_video").attr("src", result.flv_pull_url0);
diff --git a/templates/index.html b/templates/index.html
index 32a8cf8..c9a9df9 100755
--- a/templates/index.html
+++ b/templates/index.html
@@ -114,7 +114,7 @@