@nger/fk-upload 1.0.196 → 1.0.200
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.
@@ -42,8 +42,15 @@ class EffectTask extends rabbitmq_1.Task {
|
|
42
42
|
}
|
43
43
|
const w7 = injector.get(w7_1.W7DataSource);
|
44
44
|
let uploadUrl = task.uploadUrl;
|
45
|
-
if (uploadUrl.
|
46
|
-
|
45
|
+
if (!(uploadUrl && uploadUrl.length > 0)) {
|
46
|
+
await complete();
|
47
|
+
return next && next();
|
48
|
+
}
|
49
|
+
if (uploadUrl.includes('s21i.faiusr.com')) {
|
50
|
+
uploadUrl = uploadUrl.replace('s21i.faiusr.com', 's21v.faiusr.com');
|
51
|
+
}
|
52
|
+
if (uploadUrl.includes('s21d.faiusrd.com')) {
|
53
|
+
uploadUrl = uploadUrl.replace('s21d.faiusrd.com', 's21v.faiusr.com');
|
47
54
|
}
|
48
55
|
await db.manager.update(entities_1.FkDownloadTaskEntity, task.filename, { status: 3, uploadUrl });
|
49
56
|
if (task.topicId) {
|
@@ -52,7 +59,7 @@ class EffectTask extends rabbitmq_1.Task {
|
|
52
59
|
await (0, fs_extra_1.unlink)(filePath);
|
53
60
|
}
|
54
61
|
catch (e) { }
|
55
|
-
await w7.manager.update(w7_1.W7ChatTopicEntity, task.topicId, { topicStyle: 7, thirdUrl: item.url, foreverUrl:
|
62
|
+
await w7.manager.update(w7_1.W7ChatTopicEntity, task.topicId, { topicStyle: 7, thirdUrl: item.url, foreverUrl: uploadUrl });
|
56
63
|
await complete();
|
57
64
|
}
|
58
65
|
else {
|