修复不规则vr作品名字无法匹配

This commit is contained in:
lzyme.dev@gmail.com
2026-08-30 21:43:56 +08:00
parent 9db06fba3b
commit 8829af0fc3
3 changed files with 95 additions and 38 deletions
+3 -2
View File
@@ -6,8 +6,9 @@ const getDownPathList = async () => {
return "object" == typeof res ? res.data : null;
};
const searchFiles = async (search_value, offset = 0, limit = 30) => {
const url = `https://webapi.115.com/files/search?search_value=${encodeURIComponent(search_value)}&offset=${offset}&limit=${limit}`;
const searchFiles = async (search_value, offset = 0, limit = 30, params = {}) => {
const queryParams = new URLSearchParams({search_value, offset, limit, ...params});
const url = `https://webapi.115.com/files/search?${queryParams}`;
return await gmHttp.get(url);
};