14 lines
418 B
TypeScript
Raw Normal View History

2024-10-21 01:38:58 +08:00
// https://github.com/DIYgod/RSSHub/blob/master/lib/routes/cls/utils.ts
const params = {
appName: "CailianpressWeb",
os: "web",
sv: "7.7.5",
}
export async function getSearchParams(moreParams?: any) {
const searchParams = new URLSearchParams({ ...params, ...moreParams })
searchParams.sort()
searchParams.append("sign", await md5(await myCrypto(searchParams.toString(), "SHA-1")))
return searchParams
}