daidr / paimon-webext

Track Genshin Impact stats in your browser.
MIT License
156 stars 8 forks source link

does not work in Japan #62

Closed timelis closed 9 months ago

timelis commented 9 months ago

I installed the extension on Chrome and tried using it, but it fails to retrieve data.

By the way, I hooked the function with the current latest version (2.46.0) published on Google Play Store, but the generation method was different from the Dynamic Secret used in this repository. Of course, I don't think everything is different, but the data required to generate DS, the Salt, or both have been changed.

aaaaa.a2222 is called: str=[{"applicationId":900015,"applicationName":"hoyolab","eventId":100004,"eventName":"ClientReport","eventTime":"1704270598","msgId":"83b83fe4-e1ba-460c-8a15-921cbf27fa07","uploadContent":{"deviceInfo":{"bundleId":"com.mihoyo.hoyolab","cps":"google","deviceId":"ebd335f1-ca21-36ef-9b0c-4921fc5791f7","deviceModel":"sdk_gphone64_arm64","deviceName":"Google sdk_gphone64_arm64","isp":"Unknown","platform":"Android","registerCPS":"google","sciX":1080,"sciY":2280,"systemInfo":"Android 14"},"logInfo":{"actionId":1053,"actionName":"heartbeat","cBody":{"commonExtraInfo":{"abTest":[{"6126_212":"2"},{"6157_251":"1"},{"6146_256":"1"},{"6152_257":"1"},{"6212_339":"2"},{"6211_338":"2"},{"6277_454":"2"},{"6315_483":"2"},{"6337_525":"2"},{"6360_528":"1"},{"6069_187":"2"},{"6065_548":"10"},{"6194_463":"1"},{"6253_416":"3"},{"6026_69":"4"},{"6290_450":"2"},{"6214_337":"8"},{"6199_295":"2"},{"6037_94":"1"},{"6071_426":"2"}]},"eventExtraInfo":{"sessionId":"1704268221708"},"gameId":"","lang":"ja-jp","pageArrangement":"","pageExtraInfo":{"nightMode":false},"pageId":"","pageName":"","pageSequence":"","pageType":"","sourceArrangement":"","sourceGameId":"","sourceId":"","sourceName":"","sourcePath":"","sourceType":"","subPageName":"","subPagePath":"","timestamp":"1704270598980","timezone":"GMT+9"},"logTime":1704270598},"userInfo":{"accountId":"","accountType":-1,"channelId":0,"userId":""},"versionInfo":{"clientVersion":"2.46.0","logVersion":"1.0.0"}}}], str2=
aaaaa.a2222 result=1704270599,167357,823fe44eb756842826e0fd7d160bec2c

I would be happy if this data could be of some help