sa2kit 1.6.105 → 1.6.111

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.
@@ -7317,9 +7317,9 @@ var UniversalExportClient = class {
7317
7317
  };
7318
7318
  if (typeof request.configId === "string") {
7319
7319
  requestBody.configId = request.configId;
7320
- } else {
7320
+ } else if (request.configId && typeof request.configId === "object") {
7321
7321
  requestBody.config = request.configId;
7322
- if (request.configId?.id) {
7322
+ if (request.configId.id) {
7323
7323
  requestBody.configId = request.configId.id;
7324
7324
  }
7325
7325
  }
@@ -7468,7 +7468,10 @@ var UniversalExportClient = class {
7468
7468
  * 转换API返回的导出结果
7469
7469
  */
7470
7470
  transformExportResultFromAPI(apiResult) {
7471
- const fileBlob = this.createFileBlobFromBase64(apiResult.fileData, apiResult.fileName);
7471
+ const fileBlob = this.createFileBlobFromBase64(
7472
+ apiResult.fileData ?? apiResult.fileBlob,
7473
+ apiResult.fileName
7474
+ );
7472
7475
  return {
7473
7476
  exportId: apiResult.exportId,
7474
7477
  fileName: apiResult.fileName,
@@ -8272,10 +8275,10 @@ var BookingAdminPanel = ({
8272
8275
  "Content-Type": "application/json"
8273
8276
  },
8274
8277
  body: JSON.stringify({
8278
+ configId: exportConfig.id,
8275
8279
  config: exportConfig,
8276
8280
  data: exportData,
8277
8281
  customFileName: `\u9884\u8BA2\u4FE1\u606F_${(/* @__PURE__ */ new Date()).toISOString().split("T")[0]}${enableUserPriceCalculation ? "_\u542B\u7528\u6237\u603B\u4EF7" : ""}`,
8278
- // 不传递分页参数,避免导出时被分页限制
8279
8282
  pagination: void 0
8280
8283
  })
8281
8284
  });
@@ -8284,10 +8287,11 @@ var BookingAdminPanel = ({
8284
8287
  throw new Error(errorData.error || `\u5BFC\u51FA\u5931\u8D25: ${response.statusText}`);
8285
8288
  }
8286
8289
  const responseData = await response.json();
8287
- if (responseData.result && responseData.result.fileData) {
8290
+ const base64Payload = responseData.result?.fileData ?? responseData.result?.fileBlob;
8291
+ if (responseData.result && base64Payload) {
8288
8292
  console.log("\u{1F4C1} [BookingAdminPanel] \u68C0\u6D4B\u5230\u6587\u4EF6\u6570\u636E\uFF0C\u5F00\u59CB\u4E0B\u8F7D");
8289
- const { fileData, fileName } = responseData.result;
8290
- const binaryString = atob(fileData);
8293
+ const { fileName } = responseData.result;
8294
+ const binaryString = atob(base64Payload);
8291
8295
  const bytes = new Uint8Array(binaryString.length);
8292
8296
  for (let i = 0; i < binaryString.length; i++) {
8293
8297
  bytes[i] = binaryString.charCodeAt(i);