hifun-tools 1.4.46 → 1.4.47

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.
@@ -195,12 +195,15 @@ class InitCls {
195
195
  console.info("🏠 匹配到app传入租户");
196
196
  return { tenant: this.appTenant };
197
197
  }
198
- else if (host.includes("iggame") ||
198
+ else if (host.includes("t1sport") ||
199
199
  host.includes("localhost") ||
200
200
  (!!this.localPath &&
201
201
  location.origin.includes(this.localPath.replace(/\/+$/, "")))) {
202
- console.info("🏠 匹配默认租户 iggame");
203
- return { tenant: "iggame" };
202
+ console.info("🏠 匹配默认租户 t1sport");
203
+ return { tenant: "t1sport" };
204
+ }
205
+ else {
206
+ return { tenant: "t1sport" };
204
207
  }
205
208
  throw new Error("无法获取有效的租户信息");
206
209
  }
@@ -410,7 +413,7 @@ class InitCls {
410
413
  catch (finalErr) {
411
414
  // 最终无奈的保底:取第一个已知的 URL
412
415
  this.domainBaseUrl =
413
- this.defaultBaseUrl || toStandardUrl(this.OriginBaseUrl[0] || "");
416
+ this.defaultBaseUrl || toStandardUrl(this.OriginBaseUrl[0]) || (location.origin + '/api');
414
417
  this.onlyBackUp = true;
415
418
  console.warn("⚠️ 所有链路均不可用,使用最后保底地址:", this.domainBaseUrl);
416
419
  }
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "1.4.45";
1
+ export declare const VERSION = "1.4.46";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "1.4.45";
1
+ export const VERSION = "1.4.46";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hifun-tools",
3
- "version": "1.4.46",
3
+ "version": "1.4.47",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",