From 52cdc02a322cb3b75a266c861999ace123fd2bae Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Tue, 24 Aug 2021 10:41:28 +0800 Subject: [PATCH] =?UTF-8?q?http=E8=AF=B7=E6=B1=82=E5=89=8D=E7=BC=80?= =?UTF-8?q?=EF=BC=8C=E6=B7=BB=E5=8A=A0=E5=B7=A2=E6=B9=96=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/api.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/utils/api.js b/src/utils/api.js index 225b5ed..d91633d 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -4,21 +4,22 @@ let isKd = /&host=(\d)/.exec(location.hash) //host:{1:测试环境,2:正 if(isKd){ host = isKd[1] == 1 ? 'http://122.9.154.146' : 'http://116.63.168.79' }else{ - let url = location.host - console.log(url,'判断120.78.198.231',url.includes('120.78.198.231')); + let url = location.host; // 职站中台接口切换 if(url.includes('120.78.198.231')){ - host = 'http://120.78.198.231'// 职站测试服 + host = 'http://120.78.198.231'; // 职站测试服 }else if(url.includes('occupationlab.com')){ - host = 'http://www.occupationlab.com'// 职站正式服 + host = 'http://www.occupationlab.com'; // 职站正式服 }else if(url.includes('10.196.131.73')){ - host = 'http://10.196.131.73'// 河海版 - }else{ - host = 'http://39.108.250.202'// 中台 + host = 'http://10.196.131.73'; // 河海版 + }else if (url.includes('120.78.127.12')) { + host = 'http://120.78.127.12'; // 巢湖版 + } else { + host = 'http://39.108.250.202'; // 中台 } } -let host1 = 'http://39.108.250.202:8080' -let uploadURL = 'http://8.134.8.197:8001' +let host1 = 'http://39.108.250.202:8080'; +let uploadURL = 'http://8.134.8.197:8001'; export default { fileupload: `${uploadURL}/oss/manage/fileupload`,