dedsudiyu 1 day ago
parent
commit
653b995262
1 changed files with 3 additions and 7 deletions
  1. 3 7
      src/api/utilsIndex.js

+ 3 - 7
src/api/utilsIndex.js

@@ -4,13 +4,9 @@ import md5 from "js-md5";
 
 
 //判定http或者https
 //判定http或者https
 let urlText = window.location.href.split('://')[0]+'://';
 let urlText = window.location.href.split('://')[0]+'://';
-let specialDeviceUrl = urlText+'gzu.zjznai.com/specialdevice/api/internal/specialdevice/summary';
-let chemicalsUrl = urlText+'gzu.zjznai.com/chempurchase/api/internal/chemicals/inventory-summary';
-// let specialDeviceUrl = urlText+'lab.jftio.com/specialdevice/api/internal/specialdevice/summary';
-// let chemicalsUrl = urlText+'gzu.zjznai.com/chempurchase/api/internal/chemicals/inventory-summary';
-
-// let serviceKEY = 'd7355222c8ac972b06a23d4bd219bc03fcb12ea2ec700a1ad0932428edb5cd35'
-let serviceKEY = 'e87492df8710ff5b916021537e72fc0e8db092422b13d1998d299cc32d91df2c'
+let specialDeviceUrl = urlText+judgmentNetworkReturnAddress()+'/internal/specialdevice/summary';
+let chemicalsUrl = urlText+judgmentNetworkReturnAddress()+'/internal/chemicals/inventory-summary';
+let serviceKEY = 'e87492df8710ff5b916021537e72fc0e8db092422b13d1998d299cc32d91df2c';
 
 
 
 
 // 创建专用 axios 实例(不带 Authorization,使用服务密钥鉴权)
 // 创建专用 axios 实例(不带 Authorization,使用服务密钥鉴权)