-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Global.ts
25 lines (21 loc) · 834 Bytes
/
Global.ts
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
import moment from "moment";
export function getTimeNow(): string {
return moment().format("YYYYMMDDHHmmss" + moment().millisecond().toString().slice(0, -1));
}
export function generateDeviceId() {
return "s1rmi184-mbib-0000-0000-" + getTimeNow();
}
export const defaultHeaders = {
'Cache-Control': 'no-cache',
'Accept': 'application/json, text/plain, */*',
'Authorization': 'Basic RU1CUkVUQUlMV0VCOlNEMjM0ZGZnMzQlI0BGR0AzNHNmc2RmNDU4NDNm',
'User-Agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36",
"Origin": "https://online.mbbank.com.vn",
"Referer": "https://online.mbbank.com.vn/",
"Content-Type": "application/json; charset=UTF-8",
};
export const defaultTesseractConfig = {
lang: "eng",
oem: 1,
psm: 12,
};