@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/dist/service-API/storages.d.ts +1 -1
- package/dist/tools-lib.cjs.development.js +12 -11
- package/dist/tools-lib.cjs.development.js.map +1 -1
- package/dist/tools-lib.cjs.production.min.js +1 -1
- package/dist/tools-lib.cjs.production.min.js.map +1 -1
- package/dist/tools-lib.esm.js +12 -11
- package/dist/tools-lib.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/service-API/recombinations/index.ts +4 -3
- package/src/service-API/resources.ts +1 -1
- package/src/service-API/storages.ts +1 -1
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
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
|
|
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
|
|
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) {
|