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