sa2kit 1.6.106 → 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.
@@ -7341,9 +7341,9 @@ var UniversalExportClient = class {
7341
7341
  };
7342
7342
  if (typeof request.configId === "string") {
7343
7343
  requestBody.configId = request.configId;
7344
- } else {
7344
+ } else if (request.configId && typeof request.configId === "object") {
7345
7345
  requestBody.config = request.configId;
7346
- if (request.configId?.id) {
7346
+ if (request.configId.id) {
7347
7347
  requestBody.configId = request.configId.id;
7348
7348
  }
7349
7349
  }
@@ -7492,7 +7492,10 @@ var UniversalExportClient = class {
7492
7492
  * 转换API返回的导出结果
7493
7493
  */
7494
7494
  transformExportResultFromAPI(apiResult) {
7495
- const fileBlob = this.createFileBlobFromBase64(apiResult.fileData, apiResult.fileName);
7495
+ const fileBlob = this.createFileBlobFromBase64(
7496
+ apiResult.fileData ?? apiResult.fileBlob,
7497
+ apiResult.fileName
7498
+ );
7496
7499
  return {
7497
7500
  exportId: apiResult.exportId,
7498
7501
  fileName: apiResult.fileName,
@@ -8296,10 +8299,10 @@ var BookingAdminPanel = ({
8296
8299
  "Content-Type": "application/json"
8297
8300
  },
8298
8301
  body: JSON.stringify({
8302
+ configId: exportConfig.id,
8299
8303
  config: exportConfig,
8300
8304
  data: exportData,
8301
8305
  customFileName: `\u9884\u8BA2\u4FE1\u606F_${(/* @__PURE__ */ new Date()).toISOString().split("T")[0]}${enableUserPriceCalculation ? "_\u542B\u7528\u6237\u603B\u4EF7" : ""}`,
8302
- // 不传递分页参数,避免导出时被分页限制
8303
8306
  pagination: void 0
8304
8307
  })
8305
8308
  });
@@ -8308,10 +8311,11 @@ var BookingAdminPanel = ({
8308
8311
  throw new Error(errorData.error || `\u5BFC\u51FA\u5931\u8D25: ${response.statusText}`);
8309
8312
  }
8310
8313
  const responseData = await response.json();
8311
- if (responseData.result && responseData.result.fileData) {
8314
+ const base64Payload = responseData.result?.fileData ?? responseData.result?.fileBlob;
8315
+ if (responseData.result && base64Payload) {
8312
8316
  console.log("\u{1F4C1} [BookingAdminPanel] \u68C0\u6D4B\u5230\u6587\u4EF6\u6570\u636E\uFF0C\u5F00\u59CB\u4E0B\u8F7D");
8313
- const { fileData, fileName } = responseData.result;
8314
- const binaryString = atob(fileData);
8317
+ const { fileName } = responseData.result;
8318
+ const binaryString = atob(base64Payload);
8315
8319
  const bytes = new Uint8Array(binaryString.length);
8316
8320
  for (let i = 0; i < binaryString.length; i++) {
8317
8321
  bytes[i] = binaryString.charCodeAt(i);