@nger/fk-upload 1.0.21 → 1.0.22

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.
@@ -204,6 +204,7 @@ let TaskService = class TaskService {
204
204
  // fullDownUrl
205
205
  const downUrl = data.fullDownUrl;
206
206
  if (downUrl) {
207
+ const fullUrl = downUrl.startsWith('http') ? downUrl : `https://` + downUrl;
207
208
  this.redis.del(task.filename);
208
209
  this.ws.send({
209
210
  action: `@nger/fk-upload/uploading`,
@@ -211,17 +212,17 @@ let TaskService = class TaskService {
211
212
  uploadSize: task.end,
212
213
  filename: task.filename,
213
214
  total: task.total,
214
- uploadUrl: `https://` + downUrl
215
+ uploadUrl: fullUrl
215
216
  }
216
217
  });
217
218
  this.addEffectTask({
218
219
  filename: task.filename,
219
- uploadUrl: `https://` + downUrl,
220
+ uploadUrl: fullUrl,
220
221
  topicId: task.topicId
221
222
  });
222
223
  this.db.manager.update(entities_1.FkDownloadTaskEntity, task.filename, {
223
224
  status: 2,
224
- uploadUrl: `https://` + downUrl,
225
+ uploadUrl: fullUrl,
225
226
  uploadSize: task.total
226
227
  }).then(() => complete()).catch(() => fail());
227
228
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nger/fk-upload",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "description": "",
5
5
  "main": "dist/core.js",
6
6
  "types": "dist/core.d.ts",