@nger/fk-upload 1.0.18 → 1.0.21

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.
@@ -123,7 +123,6 @@ let TaskService = class TaskService {
123
123
  }
124
124
  });
125
125
  });
126
- complete();
127
126
  }
128
127
  else {
129
128
  complete();
@@ -171,6 +170,7 @@ let TaskService = class TaskService {
171
170
  formdata.append('isFreeVer', 'false');
172
171
  formdata.append('aid', `${task.aid}`);
173
172
  formdata.append('folderId', `${task.folderId}`);
173
+ console.log(task.filename);
174
174
  formdata.append('fileName', task.filename);
175
175
  formdata.append(`totalSize`, `${task.total}`);
176
176
  formdata.append(`fileMd5`, task.fileMd5);
@@ -201,7 +201,8 @@ let TaskService = class TaskService {
201
201
  });
202
202
  this.redis.set(task.filename, `${task.index + 1}`);
203
203
  if (data) {
204
- const downUrl = data.downUrl;
204
+ // fullDownUrl
205
+ const downUrl = data.fullDownUrl;
205
206
  if (downUrl) {
206
207
  this.redis.del(task.filename);
207
208
  this.ws.send({
@@ -254,7 +255,6 @@ let TaskService = class TaskService {
254
255
  obs.subscribe({
255
256
  next: async ([data, complete, fail]) => {
256
257
  const task = JSON.parse(data);
257
- console.log(task);
258
258
  const download = await this.db.manager.findOne(entities_1.FkDownloadTaskEntity, { where: { filename: task.filename } });
259
259
  if (download) {
260
260
  let total = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nger/fk-upload",
3
- "version": "1.0.18",
3
+ "version": "1.0.21",
4
4
  "description": "",
5
5
  "main": "dist/core.js",
6
6
  "types": "dist/core.d.ts",