小编Gui*_*rme的帖子

我从 IOS Firebase API 获取 Apple 撤销令牌端点参数(client_id、client_secret、token)

Apple 抱怨我的应用程序,因为我没有调用其余端点撤销令牌来删除帐户。我必须按照本文档中的描述进行操作:https ://developer.apple.com/documentation/sign_in_with_apple/revoke_tokens

要调用,我需要获取client_idclient_secrettoken。我的应用程序中的登录过程由 Firebase 管理,当用户执行登录时我不会保存此信息。因此,我需要从 IOS 上的 Firebase 身份验证恢复这 3 个参数,以调用该撤销令牌端点。

IOS 上的 Firebase auth API 中可能有一个方法可以为我调用 Apple 端点 revoke_token,但我没有看到它。

ios firebase swift firebase-authentication sign-in-with-apple

19
推荐指数
1
解决办法
7173
查看次数

如何使用cocos2d-x v3.2读取plist级别

我有这个plist文件:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<key>levels</key>
<array>
    <dict>
        <key>x</key>
        <int>80</int>
        <key>y</key>
        <int>266</int>
    </dict>
    <dict>
        <key>x</key>
        <int>170</int>
        <key>y</key>
        <int>266</int>
    </dict>
</array>
</plist>
Run Code Online (Sandbox Code Playgroud)

我正在尝试使用cocos2dx v3.2读取该文件:

ValueMap data;
std::string path = FileUtils::getInstance()->fullPathForFilename("my.plist");
data = FileUtils::getInstance()->getValueMapFromFile(path);
auto arrLevels = data.at("levels").asValueVector();
for(int i = 0; i < arrLevels.capacity(); i++){
//I don't know what I have to do here to get the x value and y value of the current item.
}
Run Code Online (Sandbox Code Playgroud)

有人可以帮我吗?我正在所有互联网中搜索,为此发现的所有示例均不足。

plist cocos2d-x cocos2d-x-3.0

1
推荐指数
1
解决办法
4357
查看次数