tools_batch_files 1.0.18 → 1.0.19
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.
- package/package.json +1 -1
- package/src/photoBatch.js +5 -3
package/package.json
CHANGED
package/src/photoBatch.js
CHANGED
@@ -35,10 +35,10 @@ const ZIP_FILES_DIR = "zip";
|
|
35
35
|
const expandedName = ".jpg";
|
36
36
|
|
37
37
|
//并发数量
|
38
|
-
const queueCount =
|
38
|
+
const queueCount = 20;
|
39
39
|
|
40
40
|
//起始任务下标
|
41
|
-
let taskIndex =
|
41
|
+
let taskIndex = 16941;
|
42
42
|
|
43
43
|
const readExcel = (path) => {
|
44
44
|
const workbook = XLSX.readFile(path);
|
@@ -327,10 +327,12 @@ const postData = (dataParams, indexFilePath) => {
|
|
327
327
|
|
328
328
|
logger("等待接口返回结果……");
|
329
329
|
|
330
|
-
return axios.post("http://192.168.102.61:9999/upload/photo", formData, {
|
330
|
+
// return axios.post("http://192.168.102.61:9999/upload/photo", formData, {
|
331
|
+
return axios.post("http://127.0.0.1:9999/upload/photo", formData, {
|
331
332
|
headers: {
|
332
333
|
"Content-Type": "multipart/form-data",
|
333
334
|
},
|
335
|
+
timeout: 600000, // 设置超时时间为 60 秒
|
334
336
|
});
|
335
337
|
};
|
336
338
|
|