@nger/fk-upload 1.0.22 → 1.0.25
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.
@@ -170,7 +170,6 @@ 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);
|
174
173
|
formdata.append('fileName', task.filename);
|
175
174
|
formdata.append(`totalSize`, `${task.total}`);
|
176
175
|
formdata.append(`fileMd5`, task.fileMd5);
|
@@ -204,7 +203,20 @@ let TaskService = class TaskService {
|
|
204
203
|
// fullDownUrl
|
205
204
|
const downUrl = data.fullDownUrl;
|
206
205
|
if (downUrl) {
|
207
|
-
const fullUrl = downUrl.startsWith('http') ? downUrl : `https
|
206
|
+
const fullUrl = downUrl.startsWith('http') ? downUrl : `https:` + downUrl;
|
207
|
+
console.log({ data, task });
|
208
|
+
axios_1.default.post(`https://smr00.vip.webportal.top/ajax/advanceUpload.jsp?cmd=_report&_TOKEN=${task.token}`, this.encodeURIComponent({
|
209
|
+
type: 1,
|
210
|
+
size: task.total,
|
211
|
+
time: NaN,
|
212
|
+
flag: true,
|
213
|
+
name: task.filename
|
214
|
+
}), {
|
215
|
+
headers: {
|
216
|
+
[`Content-Type`]: `application/x-www-form-urlencoded; charset=UTF-8`,
|
217
|
+
Cookie: task.cookies
|
218
|
+
}
|
219
|
+
});
|
208
220
|
this.redis.del(task.filename);
|
209
221
|
this.ws.send({
|
210
222
|
action: `@nger/fk-upload/uploading`,
|
@@ -380,7 +392,8 @@ let TaskService = class TaskService {
|
|
380
392
|
totalChunks: totalChunks,
|
381
393
|
splitSize,
|
382
394
|
complete,
|
383
|
-
topicId: task.topicId
|
395
|
+
topicId: task.topicId,
|
396
|
+
token: token
|
384
397
|
});
|
385
398
|
index = index + 1;
|
386
399
|
start = endSize;
|