Replies: 1 comment 1 reply
-
你需要将url转成二维码。 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
基于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?)
Beta Was this translation helpful? Give feedback.
All reactions