customer-chat-sdk 1.0.56 → 1.0.57

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.
@@ -17110,9 +17110,9 @@ class ScreenshotManager {
17110
17110
  topicArray.set(topicBytes.slice(0, 8));
17111
17111
  offset += 8;
17112
17112
  // routingKey: 8字节
17113
- const routingKeyBytes = encoder.encode(config.routingKey);
17114
- const routingKeyArray = new Uint8Array(buffer, offset, 8);
17115
- routingKeyArray.set(routingKeyBytes.slice(0, 8));
17113
+ const routingKeyBigInt = BigInt(config.routingKey);
17114
+ view.setBigUint64(offset, routingKeyBigInt, false); // 大端序
17115
+ offset += 8;
17116
17116
  return buffer;
17117
17117
  }
17118
17118
  /**
@@ -17106,9 +17106,9 @@ class ScreenshotManager {
17106
17106
  topicArray.set(topicBytes.slice(0, 8));
17107
17107
  offset += 8;
17108
17108
  // routingKey: 8字节
17109
- const routingKeyBytes = encoder.encode(config.routingKey);
17110
- const routingKeyArray = new Uint8Array(buffer, offset, 8);
17111
- routingKeyArray.set(routingKeyBytes.slice(0, 8));
17109
+ const routingKeyBigInt = BigInt(config.routingKey);
17110
+ view.setBigUint64(offset, routingKeyBigInt, false); // 大端序
17111
+ offset += 8;
17112
17112
  return buffer;
17113
17113
  }
17114
17114
  /**