更新代码

This commit is contained in:
guaishoudemao
2021-02-06 16:42:26 +08:00
parent f376e4302b
commit a0f56c53fe
80 changed files with 3056 additions and 2156 deletions

View File

@@ -79,3 +79,11 @@ export function Mul(arg1, arg2) {
} catch (e) {}
return Number(s1.replace(".", "")) * Number(s2.replace(".", "")) / Math.pow(10, m);
}
//替换安全域名
export function setDomain(url) {
url = url ? url.toString() : '';
//本地调试打开,生产请注销
if (url.indexOf("https://") > -1) return url;
else return url.replace('http://', 'https://');
}