处理分享页面地址用http,接口用https
This commit is contained in:
@@ -1057,3 +1057,17 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
}, false);
|
||||
|
||||
}());
|
||||
|
||||
|
||||
String.prototype.startWith=function(str){
|
||||
var reg=new RegExp("^"+str);
|
||||
return reg.test(this);
|
||||
}
|
||||
|
||||
function getShareDomain(path) {
|
||||
if(path.startWith("https")){
|
||||
return "http://youfang.fangjia.com";
|
||||
} else {
|
||||
return path;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user