forked from Toulu-debug/enen
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTS_JDHelloWorld.d.ts
More file actions
40 lines (40 loc) · 1.52 KB
/
TS_JDHelloWorld.d.ts
File metadata and controls
40 lines (40 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
interface User {
index: number;
UserName: string;
cookie: string;
UserAgent: string;
end?: boolean;
}
declare class JDHelloWorld {
scriptName: string;
cookiesArr: string[];
users: User[];
constructor(scriptName?: string);
getCookie(): Promise<void>;
exceptCookie(filename?: string): string[];
get(url: string, headers?: any, params?: object): Promise<any>;
post(url: string, data: any, headers?: any, params?: object): Promise<any>;
wait(ms?: number): Promise<unknown>;
o2s(msg: string | object, title?: string): void;
getShareCodePool(key: string, num: number): Promise<string[]>;
getshareCodeHW(key: string): Promise<string[]>;
getRandomWord(): string;
getRandomNumberByRange(start: number, end: number): number;
getRandomNumString(e: number): string;
getEncStr(fn: string, body: {
id?: number;
taskType?: number;
}): object;
getSign(fn: string, body: object): Promise<string>;
getIosVer(): string;
getFp(): Promise<string>;
getFp4_1(): Promise<string>;
algo(appId: string, fp: string, ua: string, pin: string, url: string, og: string): Promise<object>;
h5st(appid: string, body: object, client: string, clientVersion: string, functionId: string, t: number, appId: string, tk: string, rd: string, enc: string, fp: string, sua: string, pin: string): Promise<string>;
run(son: {
main: any;
help?: any;
tips?: any;
}, help?: Function, tips?: Function): Promise<void>;
}
export { User, JDHelloWorld };