@ibiz-template/core 0.7.40-alpha.7 → 0.7.41-alpha.1

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/dist/index.esm.js CHANGED
@@ -3823,9 +3823,13 @@ var Environment = {
3823
3823
  appVersion: "",
3824
3824
  devtoolConfig: {
3825
3825
  studioBaseUrl: "https://open.ibizlab.cn/modeldesign/#/",
3826
- v9Mode: false
3826
+ v9Mode: false,
3827
+ defaultMode: "close"
3827
3828
  },
3828
- enableAI: true
3829
+ enableAI: true,
3830
+ aMapSecurityJsCode: "",
3831
+ aMapKey: "",
3832
+ runContainer: "FULLCODE"
3829
3833
  };
3830
3834
 
3831
3835
  // src/error/http-error/http-error.ts
@@ -4420,8 +4424,23 @@ var CoreInterceptor = class extends Interceptor {
4420
4424
  (config.url.indexOf("/uaa/getbydcsystem/") === -1 || config.url.indexOf("/appdata") !== -1 || config.url.indexOf("/uaa/refresh_token/") !== -1)) {
4421
4425
  try {
4422
4426
  config._retry = true;
4423
- await ibiz.auth.refreshToken();
4424
- const res = await ibiz.net.get("/appdata");
4427
+ if (ibiz.env.enableAnonymous) {
4428
+ const authInfo = ibiz.auth.getAuthInfo();
4429
+ const refreshToken = getAppCookie(CoreConst.REFRESH_TOKEN);
4430
+ if (authInfo.isAnonymous || !refreshToken) {
4431
+ const tempOrgData = ibiz.orgData;
4432
+ await ibiz.auth.anonymousLogin();
4433
+ ibiz.orgData = tempOrgData;
4434
+ } else {
4435
+ await ibiz.auth.refreshToken();
4436
+ }
4437
+ } else {
4438
+ await ibiz.auth.refreshToken();
4439
+ }
4440
+ const res = await ibiz.net.get(
4441
+ "/appdata",
4442
+ ibiz.appUtil.getAppContext()
4443
+ );
4425
4444
  if (res && res.ok) {
4426
4445
  ibiz.appData = res.data;
4427
4446
  }
@@ -5356,6 +5375,9 @@ var Net = class {
5356
5375
  if (data && Object.prototype.hasOwnProperty.call(data, "srfversionid")) {
5357
5376
  params.srfversionid = data.srfversionid;
5358
5377
  }
5378
+ if (data && Object.prototype.hasOwnProperty.call(data, "srfmenuitem")) {
5379
+ delete data.srfmenuitem;
5380
+ }
5359
5381
  if (params && Object.prototype.hasOwnProperty.call(params, "srfdefdata")) {
5360
5382
  delete params.srfdefdata;
5361
5383
  }
@@ -5376,6 +5398,9 @@ var Net = class {
5376
5398
  if (params && Object.prototype.hasOwnProperty.call(params, "srfdefdata")) {
5377
5399
  delete params.srfdefdata;
5378
5400
  }
5401
+ if (params && Object.prototype.hasOwnProperty.call(params, "srfmenuitem")) {
5402
+ delete params.srfmenuitem;
5403
+ }
5379
5404
  {
5380
5405
  const urlSplit = url.split("?");
5381
5406
  urlSplit[0] = urlSplit[0].split("/").map((item) => encodeURIComponent(item)).join("/");
@@ -6367,13 +6392,14 @@ var originalFactory = Logger.methodFactory;
6367
6392
  var NOOP2 = (message) => {
6368
6393
  };
6369
6394
  Logger.methodFactory = (methodName, logLevel, loggerName) => {
6395
+ var _a, _b;
6370
6396
  const rawMethod = originalFactory(methodName, logLevel, loggerName);
6371
- if (window.Environment.environmentTag === "production") {
6397
+ if (((_a = window.Environment) == null ? void 0 : _a.environmentTag) === "production") {
6372
6398
  if (methodName === "error" || methodName === "warn" || methodName === "debug") {
6373
6399
  return NOOP2;
6374
6400
  }
6375
6401
  }
6376
- if (window.Environment.environmentTag === "test") {
6402
+ if (((_b = window.Environment) == null ? void 0 : _b.environmentTag) === "test") {
6377
6403
  if (methodName === "error" || methodName === "warn") {
6378
6404
  return NOOP2;
6379
6405
  }