@nger/fk-upload 1.0.29 → 1.0.30

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.
@@ -74,7 +74,6 @@ let TaskService = class TaskService {
74
74
  const _url = new URL(url);
75
75
  const filePath = _url.pathname;
76
76
  let ext = (0, path_1.extname)(filePath);
77
- console.log({ filePath, ext });
78
77
  filename += ext === '.' ? '.mp4' : ext;
79
78
  const task = new entities_1.FkDownloadTaskEntity();
80
79
  const root = this.injector.get(core_1.APP_ROOT);
@@ -207,10 +206,9 @@ let TaskService = class TaskService {
207
206
  this.redis.set(task.filename, `${task.index + 1}`);
208
207
  if (data) {
209
208
  // fullDownUrl
210
- const downUrl = data.fullDownUrl;
209
+ const downUrl = data.path;
211
210
  if (downUrl) {
212
211
  const fullUrl = downUrl.startsWith('http') ? downUrl : `https:` + downUrl;
213
- console.log({ data, task });
214
212
  axios_1.default.post(`https://smr00.vip.webportal.top/ajax/advanceUpload.jsp?cmd=_report&_TOKEN=${task.token}`, this.encodeURIComponent({
215
213
  type: 1,
216
214
  size: task.total,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nger/fk-upload",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
4
4
  "description": "",
5
5
  "main": "dist/core.js",
6
6
  "types": "dist/core.d.ts",