@nger/fk-upload 1.0.117 → 1.0.118

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.
@@ -169,6 +169,7 @@ let FkService = class FkService {
169
169
  });
170
170
  if (!uploadResult) {
171
171
  complete = true;
172
+ index = 0;
172
173
  break;
173
174
  }
174
175
  if (uploadResult.code !== 200) {
@@ -193,9 +194,9 @@ let FkService = class FkService {
193
194
  task.uploadUrl = fullUrl;
194
195
  }
195
196
  }
196
- // console.log(`uploading ${task.filename} ${Math.floor((index + 1 / task.totalChunks))}%`)
197
197
  index = index + 1;
198
198
  } while (!complete);
199
+ console.log(`uploading ${task.filename} ${task.uploadUrl}`);
199
200
  index = 0;
200
201
  // upload complete
201
202
  axios_1.default.post(`https://smr00.vip.webportal.top/ajax/advanceUpload.jsp?cmd=_report&_TOKEN=${task.token}`, this.encodeURIComponent({
@@ -50,7 +50,7 @@ class UploadTask extends rabbitmq_1.Task {
50
50
  await complete();
51
51
  return next && next();
52
52
  }
53
- console.log(`receive upload task`, task.filename);
53
+ console.log(`receive upload task`, { filename: task.filename, status: old.status });
54
54
  if (old.status == 1) {
55
55
  // upload
56
56
  await fk.startUploadFile(task).then(async (res) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nger/fk-upload",
3
- "version": "1.0.117",
3
+ "version": "1.0.118",
4
4
  "description": "",
5
5
  "main": "dist/core.js",
6
6
  "types": "dist/core.d.ts",