gpt4 book ai didi

node.js - "personastateflags"是什么?

转载 作者:太空宇宙 更新时间:2023-11-03 22:19:56 26 4
gpt4 key购买 nike

我请求此端点https://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=XXX&steamids=76561198049710886

我收到了这样的回复:

{ 
"response":{
"players":[
{
"steamid":"76561198049710886",
"communityvisibilitystate":3,
"profilestate":1,
"personaname":"testing",
"lastlogoff":1570961241,
"profileurl":"https://steamcommunity.com/id/danpool/",
"avatar":"https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/1b/1b5db030143e6110de8558adf4235ece591ddde1.jpg",
"avatarmedium":"https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/1b/1b5db030143e6110de8558adf4235ece591ddde1_medium.jpg",
"avatarfull":"https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/1b/1b5db030143e6110de8558adf4235ece591ddde1_full.jpg",
"personastate":0,
"realname":"John Doe",
"primaryclanid":"103582791429521408",
"timecreated":1317282093,
"personastateflags":0,
"loccountrycode":"NO"
}
]
}
}

但是我很困惑 personastateflags 的含义,我通过搜索找到了一些东西,但它们都不同,官方文档没有任何相关信息。

我找到的最后一个是这个:

  1: 'Offline', 2: 'Online', 4: 'Golden',
64: 'Online using Big Picture',
256: 'Online using Web Client',
512: 'Online using Mobile',
1024: 'Online using Steam Controller'

但在大多数情况下 personastateflags0,因此它没有任何意义:/

我还尝试在在线时启动大图片模式,结果是“1024”,这将是“使用 Steam Controller 在线”并且不正确。

附注

我使用此对象成功转换了角色

   0: 'Offline', 1: 'Online', 2: 'Busy',
3: 'Away', 4: 'Snooze', 5 :'Looking to Trade',
6: 'Looking to Play'

最佳答案

我还没有读过steam文档,但这应该意味着用户处于离线状态。

关于node.js - "personastateflags"是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58367126/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com