@nger/fk-upload 1.0.23 → 1.0.24
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,8 +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
|
208
|
-
console.log(
|
206
|
+
const fullUrl = downUrl.startsWith('http') ? downUrl : `https:` + downUrl;
|
207
|
+
console.log(data);
|
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
|
+
});
|
209
220
|
this.redis.del(task.filename);
|
210
221
|
this.ws.send({
|
211
222
|
action: `@nger/fk-upload/uploading`,
|
@@ -381,7 +392,8 @@ let TaskService = class TaskService {
|
|
381
392
|
totalChunks: totalChunks,
|
382
393
|
splitSize,
|
383
394
|
complete,
|
384
|
-
topicId: task.topicId
|
395
|
+
topicId: task.topicId,
|
396
|
+
token: token
|
385
397
|
});
|
386
398
|
index = index + 1;
|
387
399
|
start = endSize;
|