This commit is contained in:
2024-05-14 13:35:20 +08:00
parent 2183444676
commit 1b61722446
9 changed files with 106 additions and 68 deletions

View File

@@ -101,7 +101,7 @@
return;
}
localhost = json.data;
if (localhost === 'http://null:8000' || localhost === ":8000") {
if (localhost === 'https://null:8000' || localhost === ":8000") {
localhost = "https://" + window.location.host;
}
} catch (e) {
@@ -210,7 +210,7 @@
}
$.post('/nas/music/share.do', {file: file, isDir: isDir}, function (json) {
if (json.code === 0) {
var url = "http://" + window.location.host + "/html/body/nas/music.html?share=" + json.data.token
var url = "https://" + window.location.host + "/html/body/nas/music.html?share=" + json.data.token
layer.prompt({
title: "分享链接",
value: url
@@ -290,7 +290,7 @@
$('#play_share').click(function () {
$.post('/nas/music/share.do', {file: playNow}, function (json) {
if (json.code === 0) {
let url = "http://" + window.location.host + "/html/body/nas/music.html?share=" + json.data.token
let url = "https://" + window.location.host + "/html/body/nas/music.html?share=" + json.data.token
layer.prompt({
title: "分享链接",
value: url