steam api 返回数据中游戏时长
游戏未开始前
{
"appid": 582010,
"name": "Monster Hunter: World",
"playtime_forever": 21896,
"img_icon_url": "6ec147f2d423f435e15eb79b3d82f771913de634",
"has_community_visible_stats": true,
"playtime_windows_forever": 21680,
"playtime_mac_forever": 0,
"playtime_linux_forever": 215,
"playtime_deck_forever": 215,
"rtime_last_played": 1724087753,
"playtime_disconnected": 44
},
游戏中
{
"appid": 582010,
"name": "Monster Hunter: World",
"playtime_forever": 21896,
"img_icon_url": "6ec147f2d423f435e15eb79b3d82f771913de634",
"has_community_visible_stats": true,
"playtime_windows_forever": 21680,
"playtime_mac_forever": 0,
"playtime_linux_forever": 215,
"playtime_deck_forever": 215,
"rtime_last_played": 1725542355,
"playtime_disconnected": 44
},
游戏后
{
"appid": 582010,
"name": "Monster Hunter: World",
"playtime_2weeks": 18,
"playtime_forever": 21914,
"img_icon_url": "6ec147f2d423f435e15eb79b3d82f771913de634",
"has_community_visible_stats": true,
"playtime_windows_forever": 21698,
"playtime_mac_forever": 0,
"playtime_linux_forever": 215,
"playtime_deck_forever": 215,
"rtime_last_played": 1725543444,
"playtime_disconnected": 44
},
在游戏中时steam并不会更新游戏时长,但会更新 rtime_last_played ,游戏结束后才会统一更新游戏时间