@nger/fk-upload 1.0.196 → 1.0.200

Sign up to get free protection for your applications and to get access to all the features.
@@ -34,8 +34,7 @@ tslib_1.__decorate([
34
34
  title: '状态',
35
35
  widget: {
36
36
  type: 'status',
37
- color: {},
38
- label: {}
37
+ options: []
39
38
  }
40
39
  }),
41
40
  (0, typeorm_1.Column)({
@@ -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.startsWith('https://29294142.s21i.faiusr.com')) {
46
- uploadUrl = uploadUrl.replace('https://29294142.s21i.faiusr.com', 'https://29294142.s21v.faiusr.com');
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: task.uploadUrl });
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nger/fk-upload",
3
- "version": "1.0.196",
3
+ "version": "1.0.200",
4
4
  "description": "nger fk upload",
5
5
  "main": "dist/electon.js",
6
6
  "types": "dist/core.d.ts",