faker2/jd_checkCookie.ts
2022-05-12 11:09:34 +08:00

13 lines
342 B
TypeScript

import {getCookie} from "./TS_USER_AGENTS"
let cookie: string = '', UserName: string
!(async () => {
let cookiesArr: string[] = await getCookie(true)
for (let [index, value] of cookiesArr.entries()) {
cookie = value
UserName = decodeURIComponent(cookie.match(/pt_pin=([^;]*)/)![1])
console.log(index + 1, UserName)
}
})()