Parcourir la source

更换文件中心地址

huangxiaojing il y a 3 ans
Parent
commit
f5cc9ea22a

+ 1 - 1
microserviceUserH5/static/js/vender/vue/config.js

@@ -12,7 +12,7 @@ var base_url = baseUrl; //测试服务器
 //var base_url = 'http://**********'; //正式服务器
 
 
-const fileCenterApi = 'http://110.53.221.195:8210';
+const fileCenterApi = window.location.protocol + '//file.phone.androidscloud.com:8121';
 //const fileCenterApi = 'https://prese.phone.androidscloud.com/'
 // https://prese.phone.androidscloud.com/
 // https://prese.phone.androidscloud.com/

+ 2 - 11
microserviceUserH5/vcloud/actFissionShare.html

@@ -565,11 +565,7 @@
 		});
         function download() {
             if (isAndroid) {
-                if (baseUrl.includes('prese.phone.androidscloud.com')) {
-                    window.location.href = 'http://14.18.190.144:18888/suanchou'
-                } else {
-                    window.location.href = 'http://www.androidscloud.com/suanchou?timestamp=' + Math.random();
-                }
+              window.location.href = 'http://www.androidscloud.com/suanchou?timestamp=' + Math.random();
             } else if (isIOS) {
                 document.location.href = 'https://www.pgyer.com/gemini6?timestamp=' + Math.random();
             } else {
@@ -773,12 +769,7 @@
                 },
                 download() {
                     if (isAndroid) {
-                        if (baseUrl.includes('prese.phone.androidscloud.com')) {
-                            window.location.href = 'http://14.18.190.144:18888/suanchou'
-                        } else {
-                            window.location.href = 'http://www.androidscloud.com/suanchou?timestamp=' + Math.random();
-                        }
-
+                        window.location.href = 'http://www.androidscloud.com/suanchou?timestamp=' + Math.random();
                     } else if (isIOS) {
                         document.location.href = 'https://www.pgyer.com/gemini6?timestamp=' + Math.random();
                     } else {

+ 1 - 1
microserviceUserH5/vcloud/invite3.html

@@ -223,7 +223,7 @@
 			stopManyClick(() => {
 				var oInput = document.createElement('input'); //创建一个input
 				oInput.setAttribute("readonly", "readonly");//设置只读,否则移动端使用复制功能时可能会造成软件盘弹出
-				oInput.value = window.location.href || 'https://client.androidscloud.com/h5/microserviceUserH5/vcloud/invite.html';
+				oInput.value = window.location.href || 'https://client.phone.androidscloud.com//h5/microserviceUserH5/vcloud/invite.html';
 				$('.ipt')[0].appendChild(oInput);//将input插入到body
 				// oInput.select(); // 选择对象 ios不支持
 				selectText(oInput, 0, oInput.value.length);

+ 1 - 1
microserviceUserH5/vcloud/invite4.html

@@ -258,7 +258,7 @@
 			stopManyClick(() => {
 				var oInput = document.createElement('input'); //创建一个input
 				oInput.setAttribute("readonly", "readonly");//设置只读,否则移动端使用复制功能时可能会造成软件盘弹出
-				oInput.value = window.location.href || 'https://client.androidscloud.com/h5/microserviceUserH5/vcloud/invite.html';
+				oInput.value = window.location.href || 'https://client.phone.androidscloud.com//h5/microserviceUserH5/vcloud/invite.html';
 				$('.ipt')[0].appendChild(oInput);//将input插入到body
 				// oInput.select(); // 选择对象 ios不支持
 				selectText(oInput, 0, oInput.value.length);

+ 1 - 5
microserviceUserH5/vcloud/promote.html

@@ -155,11 +155,7 @@
 						} else if (res.status === 1) {
 							toastr.error(res.msg)
 							setTimeout(function () {
-								if(baseUrl.includes('prese.phone.androidscloud.com')){
-									$(window).attr('location', 'http://14.18.190.144:18888');
-								}else{
-									$(window).attr('location', 'http://www.androidscloud.com');
-								}
+                $(window).attr('location', 'http://www.androidscloud.com');
 							}, 1000)
 						} else {
 							toastr.error(res.msg)

+ 1 - 6
microserviceUserH5/vcloud/qqActivity.html

@@ -319,12 +319,7 @@
 		},false);
         function download() {
             if (isAndroid) {
-                if (baseUrl == 'https://prese.phone.androidscloud.com') {
-                    window.location.href = 'http://prese.phone.androidscloud.com:8888'
-                } else {
-                    window.location.href = 'http://www.androidscloud.com?timestamp=' + Math.random();
-                }
-
+                window.location.href = 'http://www.androidscloud.com?timestamp=' + Math.random();
             } else if (isIOS) {
                 document.location.href = 'https://www.pgyer.com/gemini6?timestamp=' + Math.random();
             } else {

+ 2 - 7
microserviceUserH5/vcloud/register.html

@@ -139,11 +139,7 @@
           } else if (res.status === 1) {
             toastr.error(res.msg)
             setTimeout(function () {
-              if (baseUrl.includes('prese.phone.androidscloud.com')) {
-                $(window).attr('location', 'http://14.18.190.144:18888');
-              } else {
-                $(window).attr('location', 'http://www.androidscloud.com');
-              }
+              $(window).attr('location', 'http://www.androidscloud.com');
             }, 1000)
           } else if (res.status === 11) {
             $('#mpanel2').eq(0).text('');
@@ -177,8 +173,7 @@
     function getHead(fileId) {
       $('.head img').attr('src', '../static/img/invite/header-img.png');
       if (fileId) {
-        let urls = baseUrl == 'http://110.53.221.195:8210';
-        $('.head img').attr('src', `${urls}/document/newFile/download/0/edv834e74a9c43eaac02?fileKey=` + fileId);
+        $('.head img').attr('src', window.location.protocol + `//file.phone.androidscloud.com:8121/document/newFile/download/0/edv834e74a9c43eaac02?fileKey=` + fileId);
       }
     }
     function encrypt(word, keyStr) {

+ 1 - 5
microserviceUserH5/vcloud/share.html

@@ -220,11 +220,7 @@
 						this.showD = true;
 						return;
 					} else {
-						if(window.location.href.includes('prese.phone.androidscloud.com')){
-							window.location.href = 'http://14.18.190.144:18888/admin/attachment/download/2117e9b7f3734b16b81b9d7bb1c5a601'
-						} else {
-							window.location.href ='http://www.androidscloud.com/admin/attachment/download/2117e9b7f3734b16b81b9d7bb1c5a601';
-						}
+            window.location.href ='http://www.androidscloud.com/admin/attachment/download/2117e9b7f3734b16b81b9d7bb1c5a601';
 					}
 
 				},

+ 1 - 1
microserviceUserH5/vcloud/weChatExchangePhoneActivity.html

@@ -479,7 +479,7 @@
 		},false);
         function download() {
             if (isAndroid) {
-				location.href = `./exchangePhoneDownApp.html?code=w9FS6O4GZy71&platform=1`;
+				      location.href = `./exchangePhoneDownApp.html?code=w9FS6O4GZy71&platform=1`;
             } else if (isIOS) {
                 location.href = 'https://www.pgyer.com/gemini6?timestamp=' + Math.random();
             } else {