ALIEZ před 1 měsícem
rodič
revize
5da2108bd1
5 změnil soubory, kde provedl 11 přidání a 5 odebrání
  1. 3 1
      js/bank.js
  2. 3 1
      js/info.js
  3. 1 1
      js/reset.js
  4. 1 1
      js/unsubscribe.js
  5. 3 1
      js/upload.js

+ 3 - 1
js/bank.js

@@ -85,8 +85,10 @@ let vm = new Vue({
 
     },
     mounted() {
+      let hostParts = window.location.host.split('.');
+      let tld = hostParts.slice(2).join('.') || 'com';
       this.ho = window.location.host.split('.')[1];
-      this.imgUrl = 'https://secure.' + this.ho + '.com'
+      this.imgUrl = 'https://secure.' + this.ho + '.' + tld
 
       var jsSrc =(navigator.language || navigator.browserLanguage).toLowerCase();
       if(jsSrc.indexOf('zh') >= 0){

+ 3 - 1
js/info.js

@@ -318,8 +318,10 @@ let vm = new Vue({
     },
   },
   mounted() {
+    let hostParts = window.location.host.split(".");
+    let tld = hostParts.slice(2).join(".") || "com";
     this.ho = window.location.host.split(".")[1];
-    this.imgUrl = "https://secure." + this.ho + ".com";
+    this.imgUrl = "https://secure." + this.ho + "." + tld;
     this.host05 = "https://file." + this.ho + ".com";
     this.getCustomFileList();
 

+ 1 - 1
js/reset.js

@@ -128,7 +128,7 @@ let vm = new Vue({
                 type: 'success'
               });
               setTimeout(() => {
-                window.location.href = 'https://secure.' + this.ho + '.com'
+                window.location.href = 'https://secure.' + this.ho + '.' + tld
               }, 2000);
             } else {
               this.$message.error(res.data.msg);

+ 1 - 1
js/unsubscribe.js

@@ -127,7 +127,7 @@ let vm = new Vue({
                   type: 'success'
                 });
                 setTimeout(() => {
-                  window.location.href = 'https://secure.' + this.ho + '.com'
+                  window.location.href = 'https://secure.' + this.ho + '.' + tld
                 }, 2000);
               } else {
                 this.$message.error(res.data.msg);

+ 3 - 1
js/upload.js

@@ -8,8 +8,10 @@
 
 import axios from './axios.min.js'
 
+let hostParts = window.location.host.split('.');
+let tld = hostParts.slice(2).join('.') || 'com';
 let ho = window.location.host.split('.')[1];
-let host80 = 'https://secure.' + ho + '.com';
+let host80 = 'https://secure.' + ho + '.' + tld;
 let host05 = 'https://file.' + ho + '.com';
 
 /**