@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:
|
215
|
+
uploadUrl: fullUrl
|
215
216
|
}
|
216
217
|
});
|
217
218
|
this.addEffectTask({
|
218
219
|
filename: task.filename,
|
219
|
-
uploadUrl:
|
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:
|
225
|
+
uploadUrl: fullUrl,
|
225
226
|
uploadSize: task.total
|
226
227
|
}).then(() => complete()).catch(() => fail());
|
227
228
|
}
|