@zgfe/business-lib 1.2.70-hxd.30 → 1.2.70-hxd.32

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.
@@ -126,8 +126,9 @@ var StringList = function StringList(props) {
126
126
  method: 'post',
127
127
  data: requestData
128
128
  }).then(function (result) {
129
+ var data = result === null || result === void 0 ? void 0 : result.data;
129
130
  setOptions(function () {
130
- return result && result.sources ? result.sources.map(function (item) {
131
+ return data && data.sources ? data.sources.map(function (item) {
131
132
  return {
132
133
  name: item,
133
134
  value: item
@@ -91,6 +91,7 @@ export interface GlobalContextProps {
91
91
  authority?: any;
92
92
  basicConfig?: any;
93
93
  customized_version?: string;
94
+ showProdDownload?: Boolean;
94
95
  }
95
96
  declare const BizGlobalDataContext: import("react").Context<GlobalContextProps>;
96
97
  export default BizGlobalDataContext;
@@ -17,6 +17,13 @@ export var serviceTypeType;
17
17
  serviceTypeType[serviceTypeType["IO"] = 1] = "IO";
18
18
  serviceTypeType[serviceTypeType["CEP"] = 2] = "CEP";
19
19
  })(serviceTypeType || (serviceTypeType = {}));
20
- var BizGlobalDataContext = /*#__PURE__*/createContext({});
20
+ var showProdDownloadMethod = function showProdDownloadMethod() {
21
+ var ipList = ['10.82.0.0', '10.82.0.16', '10.64.64.0', '10.64.64.24', '10.64.71.0', '10.64.71.24', '10.64.48.0', '10.64.48.23', '10.64.50.0', '10.64.50.24', '10.64.162.0', '10.64.162.24', '10.64.188.0', '10.64.188.23', '10.64.140.0', '10.64.140.24'];
22
+ var ip = window.location.hostname;
23
+ return !ipList.includes(ip);
24
+ };
25
+ var BizGlobalDataContext = /*#__PURE__*/createContext({
26
+ showProdDownload: showProdDownloadMethod()
27
+ });
21
28
  export default BizGlobalDataContext;
22
29
  export var BizValidatorContext = /*#__PURE__*/createContext({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.2.70-hxd.30",
3
+ "version": "1.2.70-hxd.32",
4
4
  "module": "es/index.js",
5
5
  "typings": "es/index.d.ts",
6
6
  "files": [
@@ -55,7 +55,7 @@
55
55
  "react": "^16.12.0 || ^17.0.0",
56
56
  "yorkie": "^2.0.0"
57
57
  },
58
- "gitHead": "284e261761c36e1f31f99251c17dd8ad97d06be4",
58
+ "gitHead": "86d49045fb2139373bacb3a2cb6293ec8b99e338",
59
59
  "gitHooks": {
60
60
  "pre-commit": "lint-staged"
61
61
  }