ztxkutils 2.8.3-1 → 2.8.3-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.
@@ -136,7 +136,7 @@ function createPublicDownloadUrl(apiUrl, fileId) {
136
136
  */
137
137
  function previewFile(fileUrl, fileId, otherOption) {
138
138
  // 给附件id加密
139
- fileId = encodeFileIdByDownload(fileId);
139
+ fileId = encodeFileIdByPreview(fileId);
140
140
  var token = '';
141
141
  if (typeof otherOption === 'object') {
142
142
  token = getToken() || (otherOption === null || otherOption === void 0 ? void 0 : otherOption.authToken);
@@ -163,7 +163,7 @@ function previewFile(fileUrl, fileId, otherOption) {
163
163
  */
164
164
  function createOriginalUrl(fileUrl, fileId, otherOption) {
165
165
  // 给附件id加密
166
- fileId = encodeFileIdByDownload(fileId);
166
+ fileId = encodeFileIdByPreview(fileId);
167
167
  var token = getToken() || (otherOption === null || otherOption === void 0 ? void 0 : otherOption.authTOken);
168
168
  var titleName = otherOption === null || otherOption === void 0 ? void 0 : otherOption.titleName;
169
169
  var _fileUrl = fileUrl.endsWith('/')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkutils",
3
- "version": "2.8.3-1",
3
+ "version": "2.8.3-2",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",