ztxkutils 2.10.65 → 2.10.66

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.
@@ -190,7 +190,7 @@ function createPublicDownloadUrl(apiUrl, fileId) {
190
190
  */
191
191
  function previewFile(fileUrl, fileId, otherOption) {
192
192
  // 给附件id加密
193
- fileId = crypto.encrypt_des(fileId);
193
+ fileId = encodeURIComponent(crypto.encrypt(fileId));
194
194
  var token = '';
195
195
  if (typeof otherOption === 'object') {
196
196
  token = getToken() || (otherOption === null || otherOption === void 0 ? void 0 : otherOption.authToken);
@@ -230,7 +230,7 @@ function previewFile(fileUrl, fileId, otherOption) {
230
230
  */
231
231
  function batchPreviewFile(fileUrl, fileId, otherOption) {
232
232
  // 给附件id加密
233
- fileId = crypto.encrypt_des(fileId);
233
+ fileId = encodeURIComponent(crypto.encrypt(fileId));
234
234
  var token = '';
235
235
  if (typeof otherOption === 'object') {
236
236
  token = getToken() || (otherOption === null || otherOption === void 0 ? void 0 : otherOption.authToken);
package/dist/test.d.ts ADDED
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkutils",
3
- "version": "2.10.65",
3
+ "version": "2.10.66",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",