add tz information

This commit is contained in:
Lei PAN
2024-04-03 14:13:25 +02:00
parent 8484e634f3
commit 0e31f7525f
2 changed files with 8 additions and 4 deletions
+3 -1
View File
@@ -20,6 +20,7 @@ class RequestDataPojo {
acw acw
pr pr
ts_mtp ts_mtp
tz
cookiesStr cookiesStr
constructor(glvd, constructor(glvd,
@@ -37,7 +38,7 @@ class RequestDataPojo {
plg, plg,
eva, eva,
vnd, vnd,
plu, ua, dvm, acw, pr, ts_mtp) { plu, ua, dvm, acw, pr, ts_mtp, tz) {
this.glvd = glvd this.glvd = glvd
this.glrd = glrd this.glrd = glrd
this.hc = hc this.hc = hc
@@ -59,6 +60,7 @@ class RequestDataPojo {
this.acw = acw this.acw = acw
this.pr = pr this.pr = pr
this.ts_mtp = ts_mtp this.ts_mtp = ts_mtp
this.tz = tz
} }
} }
+5 -3
View File
@@ -1179,7 +1179,7 @@ class CommandorPage {
plg, plg,
eva, eva,
vnd, vnd,
plu, ua, dvm, acw, pr, ts_mtp plu, ua, dvm, acw, pr, ts_mtp, tz
} = await this.page.evaluate(() => { } = await this.page.evaluate(() => {
let webglContext = document.createElement('canvas').getContext("webgl") let webglContext = document.createElement('canvas').getContext("webgl")
let webglDebugRenderInfo = webglContext.getExtension("WEBGL_debug_renderer_info") let webglDebugRenderInfo = webglContext.getExtension("WEBGL_debug_renderer_info")
@@ -1220,6 +1220,7 @@ class CommandorPage {
let acw = audio.canPlayType(('audio/wav; codecs="1"')) let acw = audio.canPlayType(('audio/wav; codecs="1"'))
let pr = window['devicePixelRatio'] let pr = window['devicePixelRatio']
let ts_mtp = navigator.maxTouchPoints || navigator.msMaxTouchPoints || 0; let ts_mtp = navigator.maxTouchPoints || navigator.msMaxTouchPoints || 0;
let tz = (new Date).getTimezoneOffset();
return { return {
glvd, glvd,
glrd, glrd,
@@ -1238,7 +1239,7 @@ class CommandorPage {
vnd, vnd,
plu, plu,
ua, ua,
dvm, acw, pr, ts_mtp dvm, acw, pr, ts_mtp, tz
} }
}) })
@@ -1263,7 +1264,8 @@ class CommandorPage {
logWithDevice("acw:" + acw, this.device) logWithDevice("acw:" + acw, this.device)
logWithDevice("pr:" + pr, this.device) logWithDevice("pr:" + pr, this.device)
logWithDevice("ts_mtp:" + ts_mtp, this.device) logWithDevice("ts_mtp:" + ts_mtp, this.device)
return new RequestDataPojo(glvd, glrd, hc, br_oh, br_ow, br_h, br_w, rs_h, rs_w, rs_cd, ars_h, ars_w, plg, eva, vnd, plu, ua, dvm, acw, pr, ts_mtp) logWithDevice("tz:" + tz, this.device)
return new RequestDataPojo(glvd, glrd, hc, br_oh, br_ow, br_h, br_w, rs_h, rs_w, rs_cd, ars_h, ars_w, plg, eva, vnd, plu, ua, dvm, acw, pr, ts_mtp, tz)
} }