@nger/fk-upload 1.0.20 → 1.0.23
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.
@@ -201,8 +201,11 @@ let TaskService = class TaskService {
|
|
201
201
|
});
|
202
202
|
this.redis.set(task.filename, `${task.index + 1}`);
|
203
203
|
if (data) {
|
204
|
-
|
204
|
+
// fullDownUrl
|
205
|
+
const downUrl = data.fullDownUrl;
|
205
206
|
if (downUrl) {
|
207
|
+
const fullUrl = downUrl.startsWith('http') ? downUrl : `https://` + downUrl;
|
208
|
+
console.log(fullUrl);
|
206
209
|
this.redis.del(task.filename);
|
207
210
|
this.ws.send({
|
208
211
|
action: `@nger/fk-upload/uploading`,
|
@@ -210,17 +213,17 @@ let TaskService = class TaskService {
|
|
210
213
|
uploadSize: task.end,
|
211
214
|
filename: task.filename,
|
212
215
|
total: task.total,
|
213
|
-
uploadUrl:
|
216
|
+
uploadUrl: fullUrl
|
214
217
|
}
|
215
218
|
});
|
216
219
|
this.addEffectTask({
|
217
220
|
filename: task.filename,
|
218
|
-
uploadUrl:
|
221
|
+
uploadUrl: fullUrl,
|
219
222
|
topicId: task.topicId
|
220
223
|
});
|
221
224
|
this.db.manager.update(entities_1.FkDownloadTaskEntity, task.filename, {
|
222
225
|
status: 2,
|
223
|
-
uploadUrl:
|
226
|
+
uploadUrl: fullUrl,
|
224
227
|
uploadSize: task.total
|
225
228
|
}).then(() => complete()).catch(() => fail());
|
226
229
|
}
|