iv-npm 1.4.39 → 1.4.41

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iv-npm",
3
- "version": "1.4.39",
3
+ "version": "1.4.41",
4
4
  "description": "公共通用包",
5
5
  "author": "Mr.Cong",
6
6
  "license": "ISC",
@@ -48,7 +48,7 @@ declare function buildURL(url: string, params: any): string;
48
48
 
49
49
  declare function apiConfiger(config: any): any;
50
50
 
51
- declare type HostKey = "BASE_URL" | "MRP_URL" | "MRP2_URL" | "ASSET_URL";
51
+ declare type HostKey = "BASE_URL" | "MRP_URL" | "MRP2_URL" | "ASSET_URL" | "GATEWAY_URL";
52
52
  declare function hostConfiger(key: HostKey): string;
53
53
 
54
54
  declare type formatType = {
@@ -146,7 +146,8 @@ function hostConfiger(key) {
146
146
  BASE_URL: "https://basis.nacho.cn",
147
147
  MRP_URL: "https://mrp.nacho.cn",
148
148
  MRP2_URL: "https://mrp2.nacho.cn",
149
- ASSET_URL: "https://gateway.nacho.cn"
149
+ ASSET_URL: "https://gateway.nacho.cn",
150
+ GATEWAY_URL: "https://gateway.nacho.cn"
150
151
  };
151
152
  try {
152
153
  if (process.env.VITE_APP_BASE_URL)
@@ -212,6 +213,9 @@ function hostConfiger(key) {
212
213
  case "ASSET_URL":
213
214
  preString = "gateway";
214
215
  break;
216
+ case "GATEWAY_URL":
217
+ preString = "gateway";
218
+ break;
215
219
  default:
216
220
  throw new Error("no matching arguments\uFF01");
217
221
  }