|
@@ -292,15 +292,13 @@ Manage.prototype.weixinShare = function() {
|
|
|
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+// window.isLocal = true
|
|
|
|
|
|
Manage.prototype.dealURL = function(src, type){
|
|
|
- //music: "///super.4dage.com/data/LYW/edit/20200928_151633415.mp3"
|
|
|
- //"https://super.4dage.com/data/LYW/edit/20200928_165319399.jpg"]
|
|
|
-
|
|
|
-
|
|
|
if(window.isLocal && settings.localPrefix!=void 0){//本地将线上的前缀替换
|
|
|
- var oldPrefixs = ["https://super.4dage.com/", "http://super.4dage.com/", "///super.4dage.com/"]
|
|
|
+ src = src.replace(new RegExp('///' , "g" ),'');
|
|
|
+ var oldPrefixs = ["https://super.4dage.com/","https://www.4dmodel.com/SuperTwo/", "super.4dage.com/", "http://super.4dage.com/", "///super.4dage.com/"]
|
|
|
+
|
|
|
for(let i=0;i<oldPrefixs.length;i++){
|
|
|
if(src.includes(oldPrefixs[i])){
|
|
|
return src.replace(oldPrefixs[i], settings.localPrefix)
|
|
@@ -310,15 +308,12 @@ Manage.prototype.dealURL = function(src, type){
|
|
|
console.error("没有找到合适的本地链接")
|
|
|
return src
|
|
|
}else{
|
|
|
- //add https://
|
|
|
var prefix = g_Prefix.replace('https://','').replace('http://','')
|
|
|
if(!src.includes('http:/') && !src.includes('https:/') && src.includes(prefix)){
|
|
|
src = 'https://'+src
|
|
|
}
|
|
|
return src
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
|
|
|
|