Skip to content

关于Game Token #77

@SC0624a

Description

@SC0624a

基于Python
`
import requests as fw
import uuid
import json

body = {'app_id':4,'device':f'{uuid.uuid4()}'}
a = fw.post(url='https://hk4e-sdk.mihoyo.com/hk4e_cn/combo/panda/qrcode/fetch',json=body)
a = json.loads(a.text)
print(a)
`

如此获得返回

{'retcode': 0, 'message': 'OK', 'data': {'url': 'https://user.mihoyo.com/qr_code_in_game.html?app_id=4&app_name=%E5%8E%9F%E7%A5%9E&bbs=true&biz_key=hk4e_cn&expire=1737248018&ticket=6785b5927a783e09ba144bb7'}}

想询问一下,是否需要特殊方式访返回的url,若直接进行访问则无法获得二维码(亦或是已经无法以此方法获得Game Token?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions