@nger/fk-upload 1.0.17 → 1.0.20
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.
@@ -102,6 +102,7 @@ let TaskService = class TaskService {
|
|
102
102
|
if (reply) {
|
103
103
|
const setting = JSON.parse(reply);
|
104
104
|
if (task.name === setting.name) {
|
105
|
+
console.log(`shedule job regist ${task.name}`);
|
105
106
|
this.schedule.scheduleJob(task.name, task.rule, async (time) => {
|
106
107
|
const accounts = await this.db.manager.find(entities_1.FkLoginEntity, {});
|
107
108
|
const w7Usernames = accounts.map(account => account.w7Username);
|
@@ -122,7 +123,6 @@ let TaskService = class TaskService {
|
|
122
123
|
}
|
123
124
|
});
|
124
125
|
});
|
125
|
-
complete();
|
126
126
|
}
|
127
127
|
else {
|
128
128
|
complete();
|
@@ -170,6 +170,7 @@ let TaskService = class TaskService {
|
|
170
170
|
formdata.append('isFreeVer', 'false');
|
171
171
|
formdata.append('aid', `${task.aid}`);
|
172
172
|
formdata.append('folderId', `${task.folderId}`);
|
173
|
+
console.log(task.filename);
|
173
174
|
formdata.append('fileName', task.filename);
|
174
175
|
formdata.append(`totalSize`, `${task.total}`);
|
175
176
|
formdata.append(`fileMd5`, task.fileMd5);
|
@@ -253,7 +254,6 @@ let TaskService = class TaskService {
|
|
253
254
|
obs.subscribe({
|
254
255
|
next: async ([data, complete, fail]) => {
|
255
256
|
const task = JSON.parse(data);
|
256
|
-
console.log(task);
|
257
257
|
const download = await this.db.manager.findOne(entities_1.FkDownloadTaskEntity, { where: { filename: task.filename } });
|
258
258
|
if (download) {
|
259
259
|
let total = 0;
|