Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions extension/function.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export async function upload_cookie( payload )
if (!password || !uuid) {
alert("错误的参数");
showBadge("err");
return false;
return { action: false, note: "错误的参数" };
}
const domains = payload['domains']?.trim().length > 0 ? payload['domains']?.trim().split("\n") : [];

Expand Down Expand Up @@ -171,7 +171,7 @@ export async function upload_cookie( payload )
} catch (error) {
console.log("error", error);
showBadge("err");
return false;
return { action: false, note: error.message };
}
// 用aes对cookie进行加密
const the_key = CryptoJS.MD5(payload['uuid']+'-'+payload['password']).toString().substring(0,16);
Expand Down Expand Up @@ -211,7 +211,7 @@ export async function upload_cookie( payload )
} catch (error) {
console.log("error", error);
showBadge("err");
return false;
return { action: false, note: error.message };
}
}

Expand Down Expand Up @@ -297,7 +297,7 @@ export async function download_cookie(payload)
} catch (error) {
console.log("error", error);
showBadge("err");
return false;
return { action: false, note: error.message };
}
}

Expand Down