sa2kit 1.6.106 → 1.6.112

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,11 +7341,8 @@ 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) {
7347
- requestBody.configId = request.configId.id;
7348
- }
7349
7346
  }
7350
7347
  if (isDataArray) {
7351
7348
  requestBody.data = request.dataSource;
@@ -7492,7 +7489,10 @@ var UniversalExportClient = class {
7492
7489
  * 转换API返回的导出结果
7493
7490
  */
7494
7491
  transformExportResultFromAPI(apiResult) {
7495
- const fileBlob = this.createFileBlobFromBase64(apiResult.fileData, apiResult.fileName);
7492
+ const fileBlob = this.createFileBlobFromBase64(
7493
+ apiResult.fileData ?? apiResult.fileBlob,
7494
+ apiResult.fileName
7495
+ );
7496
7496
  return {
7497
7497
  exportId: apiResult.exportId,
7498
7498
  fileName: apiResult.fileName,
@@ -8299,7 +8299,6 @@ var BookingAdminPanel = ({
8299
8299
  config: exportConfig,
8300
8300
  data: exportData,
8301
8301
  customFileName: `\u9884\u8BA2\u4FE1\u606F_${(/* @__PURE__ */ new Date()).toISOString().split("T")[0]}${enableUserPriceCalculation ? "_\u542B\u7528\u6237\u603B\u4EF7" : ""}`,
8302
- // 不传递分页参数,避免导出时被分页限制
8303
8302
  pagination: void 0
8304
8303
  })
8305
8304
  });
@@ -8308,10 +8307,11 @@ var BookingAdminPanel = ({
8308
8307
  throw new Error(errorData.error || `\u5BFC\u51FA\u5931\u8D25: ${response.statusText}`);
8309
8308
  }
8310
8309
  const responseData = await response.json();
8311
- if (responseData.result && responseData.result.fileData) {
8310
+ const base64Payload = responseData.result?.fileData ?? responseData.result?.fileBlob;
8311
+ if (responseData.result && base64Payload) {
8312
8312
  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);
8313
+ const { fileName } = responseData.result;
8314
+ const binaryString = atob(base64Payload);
8315
8315
  const bytes = new Uint8Array(binaryString.length);
8316
8316
  for (let i = 0; i < binaryString.length; i++) {
8317
8317
  bytes[i] = binaryString.charCodeAt(i);