ztxkutils 2.10.66-1 → 2.10.66-2

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.
@@ -276,6 +276,8 @@ function batchPreviewFile(fileUrl, fileId, otherOption) {
276
276
  * @param {string} fileType 文件类型
277
277
  */
278
278
  function createOriginalUrl(fileUrl, fileId, otherOption) {
279
+ // 给附件id加密
280
+ fileId = encodeURIComponent(crypto.encrypt(fileId));
279
281
  var token = getToken() || (otherOption === null || otherOption === void 0 ? void 0 : otherOption.authTOken);
280
282
  var titleName = dangerouslySetXss(otherOption === null || otherOption === void 0 ? void 0 : otherOption.titleName);
281
283
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkutils",
3
- "version": "2.10.66-1",
3
+ "version": "2.10.66-2",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",