fix:修复部分115账号cookie无法使用问题

This commit is contained in:
jiangrui
2025-02-25 12:51:34 +08:00
parent f860cc1f57
commit 8668bce863
2 changed files with 7 additions and 4 deletions

View File

@@ -70,7 +70,6 @@ export class Cloud115Service {
cid: "", cid: "",
}, },
}); });
if (response.data?.state && response.data.data?.list?.length > 0) { if (response.data?.state && response.data.data?.list?.length > 0) {
return { return {
data: response.data.data.list.map((item: Cloud115ListItem) => ({ data: response.data.data.list.map((item: Cloud115ListItem) => ({
@@ -91,7 +90,7 @@ export class Cloud115Service {
aid: 1, aid: 1,
cid: parentCid, cid: parentCid,
o: "user_ptime", o: "user_ptime",
asc: 0, asc: 1,
offset: 0, offset: 0,
show_dir: 1, show_dir: 1,
limit: 50, limit: 50,
@@ -99,10 +98,12 @@ export class Cloud115Service {
format: "json", format: "json",
star: 0, star: 0,
suffix: "", suffix: "",
natsort: 1, natsort: 0,
snap: 0,
record_open_time: 1,
fc_mix: 0,
}, },
}); });
if (response.data?.state) { if (response.data?.state) {
return { return {
data: response.data.data data: response.data.data

View File

@@ -5,6 +5,7 @@ import { createAxiosInstance } from "../utils/axiosInstance";
interface QuarkShareInfo { interface QuarkShareInfo {
stoken?: string; stoken?: string;
pwdId?: string; pwdId?: string;
fileSize?: number;
list: { list: {
fid: string; fid: string;
file_name: string; file_name: string;
@@ -107,6 +108,7 @@ export class QuarkService {
list, list,
pwdId, pwdId,
stoken, stoken,
fileSize: response.data.data.share?.size || 0,
}; };
} else { } else {
return { return {