mirror of
https://github.com/ourongxing/newsnow.git
synced 2025-01-19 03:09:14 +08:00
14 lines
418 B
TypeScript
14 lines
418 B
TypeScript
// 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
|
|
}
|