
回复
鸿蒙游戏服务;获取玩家标识;鉴权AT
服务端获取玩家标识接口https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/gameservice-getplayerinfo-V5报错responseBody={"rtnCode":-1,"errMsg":"Query Player Accounts Error."}
{"rtnCode":-1,"errMsg":"Query Player Accounts Error."}
原因一:未先调用端侧的unionLogin登录接口,直接调用云侧的接口createLoginWithHuaweiIDResponse或createAuthorizationWithHuaweiIDResponse获取AT了,云侧的接口只会查询,不会创建。
原因二:开发者服务器地址非大陆。
更多问题可关注:
鸿蒙游戏官方网站:https://developer.huawei.com/consumer/cn/games/
公开课:华为开发者学堂