zmdms-utils 0.0.48 → 0.0.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,6 +2,7 @@ declare function getBaseUrl(processObj: any): {
2
2
  API_URL: any;
3
3
  CICOMS_API_URL: any;
4
4
  FILE_URL: any;
5
+ OUTHR_DOMAIN: any;
5
6
  };
6
7
 
7
8
  export { getBaseUrl };
@@ -22,11 +22,19 @@ function getBaseUrl(processObj) {
22
22
  stage: processObj.REACT_APP_FILE_STAGE || "https://dzfile-prod.zmd.com.cn",
23
23
  product: processObj.REACT_APP_FILE_PRODUCT || "https://dzfile.zmd.com.cn:8012",
24
24
  };
25
+ // 外网项目各个环境地址
26
+ var outHrDomain = {
27
+ dev: processObj.REACT_APP_OUTHR_API_DEV || "http://192.168.0.134:18886",
28
+ test: processObj.REACT_APP_OUTHR_API_TEST || "http://hr-out.cico.com.cn:30601",
29
+ stage: processObj.REACT_APP_OUTHR_API_STAGE || "http://10.100.234.36:18886",
30
+ product: processObj.REACT_APP_OUTHR_API_PRODUCT || "http://10.100.234.36:18886",
31
+ };
25
32
  var currentKey = ENV.toLowerCase() || "dev";
26
33
  return {
27
34
  API_URL: apiBaseUrlObj[currentKey],
28
35
  CICOMS_API_URL: cicomsApiBaseUrlObj[currentKey],
29
36
  FILE_URL: fileBaseUrlObj[currentKey],
37
+ OUTHR_DOMAIN: outHrDomain[currentKey],
30
38
  };
31
39
  }
32
40
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zmdms-utils",
3
- "version": "0.0.48",
3
+ "version": "0.0.49",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
package/src/baseUrl.ts CHANGED
@@ -27,11 +27,22 @@ export function getBaseUrl(processObj: any) {
27
27
  processObj.REACT_APP_FILE_PRODUCT || "https://dzfile.zmd.com.cn:8012",
28
28
  };
29
29
 
30
+ // 外网项目各个环境地址
31
+ const outHrDomain: any = {
32
+ dev: processObj.REACT_APP_OUTHR_API_DEV || "http://192.168.0.134:18886",
33
+ test:
34
+ processObj.REACT_APP_OUTHR_API_TEST || "http://hr-out.cico.com.cn:30601",
35
+ stage: processObj.REACT_APP_OUTHR_API_STAGE || "http://10.100.234.36:18886",
36
+ product:
37
+ processObj.REACT_APP_OUTHR_API_PRODUCT || "http://10.100.234.36:18886",
38
+ };
39
+
30
40
  const currentKey = ENV.toLowerCase() || "dev";
31
41
 
32
42
  return {
33
43
  API_URL: apiBaseUrlObj[currentKey],
34
44
  CICOMS_API_URL: cicomsApiBaseUrlObj[currentKey],
35
45
  FILE_URL: fileBaseUrlObj[currentKey],
46
+ OUTHR_DOMAIN: outHrDomain[currentKey],
36
47
  };
37
48
  }