凎,https下不能访问http站点

This commit is contained in:
Yutousama 2022-03-28 19:44:04 +08:00
parent 1c934190b4
commit 690de202ae

View File

@ -187,7 +187,7 @@
} }
$.post('/nas/music/share.do',{file:file,isDir:isDir},function (json){ $.post('/nas/music/share.do',{file:file,isDir:isDir},function (json){
if(json.code===0){ if(json.code===0){
var url="https://"+window.location.host+"/html/body/nas/music.html?share="+json.data.token var url="http://"+window.location.host+"/html/body/nas/music.html?share="+json.data.token
layer.prompt({ layer.prompt({
title:"分享链接", title:"分享链接",
value:url value:url
@ -259,7 +259,7 @@
$('#play_share').click(function (){ $('#play_share').click(function (){
$.post('/nas/music/share.do',{file:playNow},function (json){ $.post('/nas/music/share.do',{file:playNow},function (json){
if(json.code===0){ if(json.code===0){
var url="https://"+window.location.host+"/html/body/nas/music.html?share="+json.data.token var url="http://"+window.location.host+"/html/body/nas/music.html?share="+json.data.token
layer.prompt({ layer.prompt({
title:"分享链接", title:"分享链接",
value:url value:url