@freelog/tools-lib 0.1.111 → 0.1.112

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": "@freelog/tools-lib",
3
- "version": "0.1.111",
3
+ "version": "0.1.112",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -1,4 +1,4 @@
1
- import * as FUtil from '../../utils/tools';
1
+ import * as Tool from '../../utils/tools';
2
2
  import * as Storage from '../storages';
3
3
 
4
4
  interface FileInfo {
@@ -23,8 +23,9 @@ export async function getFilesSha1Info({sha1}: GetFileInfosBySha1Params, cdParti
23
23
  let allData: FileInfo[] = [];
24
24
 
25
25
  while (true) {
26
+ console.log(needHandleSha1.join(','), 'needHandleSha1.join()90ojlskdfjsdlk')
26
27
  const {data} = await Storage.filesListInfo({
27
- sha1: needHandleSha1,
28
+ sha1: needHandleSha1.join(','),
28
29
  });
29
30
  needHandleSha1 = data
30
31
  .filter((d: any) => {
@@ -59,7 +60,7 @@ export async function getFilesSha1Info({sha1}: GetFileInfosBySha1Params, cdParti
59
60
  if (needHandleSha1.length === 0) {
60
61
  break;
61
62
  }
62
- await FUtil.promiseSleep(3000)
63
+ await Tool.promiseSleep(3000)
63
64
  }
64
65
  return allData;
65
66
  }
@@ -504,7 +504,7 @@ interface ResourcesRecommendParamsType {
504
504
  export function resourcesRecommend({...params}: ResourcesRecommendParamsType) {
505
505
  return FUtil.Request({
506
506
  method: 'GET',
507
- url: `/v2/resources/recommend?recommendType=2`,
507
+ url: `/v2/resources/recommend`,
508
508
  params: params,
509
509
  });
510
510
  }
@@ -346,7 +346,7 @@ export function clearUserNodeData({...params}: ClearUserNodeDataParamsType) {
346
346
 
347
347
  // 批量查询文件信息通过sha1
348
348
  interface FilesListInfoParamsType {
349
- sha1: string[];
349
+ sha1: string;
350
350
  }
351
351
 
352
352
  export function filesListInfo({...params}: FilesListInfoParamsType) {