链接全转https协议(同步更新)
This commit is contained in:
parent
6652c6574f
commit
4c3d070f0b
@ -354,7 +354,7 @@ function removeAllQueryTag(){
|
|||||||
|
|
||||||
function handleTagSelect(data){
|
function handleTagSelect(data){
|
||||||
if('tag' in data){ //需要新建,不知道怎么处理回调,直接把axios搬到vue里面
|
if('tag' in data){ //需要新建,不知道怎么处理回调,直接把axios搬到vue里面
|
||||||
axios.post("http://downloader.lionwebsite.xyz/GalleryManage/tag?" + qs.stringify({
|
axios.post("https://downloader.lionwebsite.xyz/GalleryManage/tag?" + qs.stringify({
|
||||||
tag:data.tag,
|
tag:data.tag,
|
||||||
AuthCode: store.state.AuthCode
|
AuthCode: store.state.AuthCode
|
||||||
})
|
})
|
||||||
|
|||||||
@ -29,7 +29,7 @@ function queryGalleries(link){
|
|||||||
tempParam = tempParam.replace(" ", "+")
|
tempParam = tempParam.replace(" ", "+")
|
||||||
document.getElementById("loading").style.display = "inline-block";
|
document.getElementById("loading").style.display = "inline-block";
|
||||||
|
|
||||||
axios.get("http://downloader.lionwebsite.xyz/query?keyword=" + tempParam)
|
axios.get("https://downloader.lionwebsite.xyz/query?keyword=" + tempParam)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
document.getElementById("loading").style.display = "none";
|
document.getElementById("loading").style.display = "none";
|
||||||
if (res.data.result === "success") {
|
if (res.data.result === "success") {
|
||||||
@ -83,8 +83,8 @@ function close(){
|
|||||||
</div>
|
</div>
|
||||||
<el-scrollbar height="65vh" ref="scrollBar">
|
<el-scrollbar height="65vh" ref="scrollBar">
|
||||||
<div style="height: 20vh; width: 100%; border-radius: 5px" v-for="gallery in galleries">
|
<div style="height: 20vh; width: 100%; border-radius: 5px" v-for="gallery in galleries">
|
||||||
<el-image alt="picture" :preview-src-list="['http://downloader.lionwebsite.xyz/query/image?path=' + gallery.thumbnailUrl,]"
|
<el-image alt="picture" :preview-src-list="['https://cdn.lionwebsite.xyz/thumbnail' + gallery.thumbnailUrl.replace('/t', ''),]"
|
||||||
:src="'http://downloader.lionwebsite.xyz/query/image?path=' + gallery.thumbnailUrl"
|
:src="'https://cdn.lionwebsite.xyz/thumbnail' + gallery.thumbnailUrl.replace('/t', '')"
|
||||||
style="height:20vh;width:35vw;float: left;"
|
style="height:20vh;width:35vw;float: left;"
|
||||||
fit="contain"
|
fit="contain"
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
|
|||||||
@ -300,10 +300,10 @@ function onlineGalleryReader(gid){
|
|||||||
function shareGallery(data){
|
function shareGallery(data){
|
||||||
const {gid, shortName} = data
|
const {gid, shortName} = data
|
||||||
let link
|
let link
|
||||||
axios.post("http://downloader.lionwebsite.xyz/GalleryManage/share?userId=3&expireHour=3&gid=" + gid).then((res) => {
|
axios.post("https://downloader.lionwebsite.xyz/GalleryManage/share?userId=3&expireHour=3&gid=" + gid).then((res) => {
|
||||||
if(res.data.result === "success"){
|
if(res.data.result === "success"){
|
||||||
let data = JSON.parse(res.data.data)
|
let data = JSON.parse(res.data.data)
|
||||||
link = 'http://lionwebsite.xyz/GetFile/{0}?ShareCode={1}'.replace('{0}', encodeURIComponent(shortName)).replace('{1}', data.shareCode)
|
link = 'https://lionwebsite.xyz/GetFile/{0}?ShareCode={1}'.replace('{0}', encodeURIComponent(shortName)).replace('{1}', data.shareCode)
|
||||||
ElMessage({dangerouslyUseHTMLString: true,
|
ElMessage({dangerouslyUseHTMLString: true,
|
||||||
message: "<span>分享成功, 过期时间:" + data.expireTime + "</span><br><a href=" + link + ">链接</a>",
|
message: "<span>分享成功, 过期时间:" + data.expireTime + "</span><br><a href=" + link + ">链接</a>",
|
||||||
duration: 0,
|
duration: 0,
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import vuex from "vuex"
|
|||||||
import axios from "axios"
|
import axios from "axios"
|
||||||
import {ElMessage} from "element-plus"
|
import {ElMessage} from "element-plus"
|
||||||
import qs from "qs"
|
import qs from "qs"
|
||||||
const BaseUrl = "http://downloader.lionwebsite.xyz/"
|
const BaseUrl = "https://downloader.lionwebsite.xyz/"
|
||||||
const GalleryManageUrl = BaseUrl + "GalleryManage"
|
const GalleryManageUrl = BaseUrl + "GalleryManage"
|
||||||
|
|
||||||
const actions = {
|
const actions = {
|
||||||
@ -578,8 +578,8 @@ const mutations = {
|
|||||||
state.currentGid = data.gid
|
state.currentGid = data.gid
|
||||||
|
|
||||||
links.forEach((link) => {
|
links.forEach((link) => {
|
||||||
state.onlineLinks[data.gid].push('http://downloader.lionwebsite.xyz/GalleryManage/onlineImage/' + link + '?gid=' + state.currentGid + '&AuthCode=' + state.AuthCode)
|
state.onlineLinks[data.gid].push('https://downloader.lionwebsite.xyz/GalleryManage/onlineImage/' + link + '?gid=' + state.currentGid + '&AuthCode=' + state.AuthCode)
|
||||||
state.currentLinks.push('http://downloader.lionwebsite.xyz/GalleryManage/onlineImage/' + link + '?gid=' + state.currentGid + '&AuthCode=' + state.AuthCode)
|
state.currentLinks.push('https://downloader.lionwebsite.xyz/GalleryManage/onlineImage/' + link + '?gid=' + state.currentGid + '&AuthCode=' + state.AuthCode)
|
||||||
})
|
})
|
||||||
|
|
||||||
state.isOnlineReading = true
|
state.isOnlineReading = true
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user