-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Description
URL是https://api-takumi-static.mihoyo.com/event/miyolive/refreshCode?version=3d6c3b&time={精确到秒的时间戳}
需要带一个HTTP请求头x-rpc-act_id,内容是直播页面URL里的act_id,否则会提示活动已结束(返回码-500012)
官方网页请求时会带一个Accept头,内容是application/json, text/plain, */*,试过不带也可以
返回的data内容大概是下面这样的(原神的code_list里会有3个):
{"code_list":[{"title":"{HTML格式兑换码内容}","code":"{兑换码}","img":"{兑换码图标URL}","to_get_time":"{兑换码出现时间戳}"}]}暂时还没出现的兑换码在列表里是全空的:
{"title":"","code":"","img":"","to_get_time":""}Metadata
Metadata
Assignees
Labels
No labels