2024-07-02 15:09:48 +08:00
|
|
|
import { getCookies } from "cookies-next";
|
|
|
|
|
|
|
|
export default function webviewBaseRequest() {
|
|
|
|
const cookies = getCookies();
|
|
|
|
const b_ts = new Date().getTime();
|
|
|
|
const baseRequest = {
|
|
|
|
b_mid: parseInt(cookies.b_mid),
|
2024-07-24 15:32:23 +08:00
|
|
|
b_did: window && window.navigator?.userAgent.slice(0,65),
|
2024-07-02 15:09:48 +08:00
|
|
|
b_ver: cookies.b_ver,
|
|
|
|
b_dt: parseInt(cookies.b_dt),
|
|
|
|
b_model: cookies.b_model,
|
|
|
|
b_nt: cookies.b_nt,
|
|
|
|
b_token: cookies.b_token,
|
|
|
|
b_ch: "h5",
|
|
|
|
b_ts: b_ts,
|
|
|
|
};
|
|
|
|
return baseRequest;
|
|
|
|
}
|