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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tools_batch_files",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "description": "批处理视频工具",
5
5
  "keywords": [
6
6
  "utils",
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 = 30;
38
+ const queueCount = 20;
39
39
 
40
40
  //起始任务下标
41
- let taskIndex = 16492;
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