跳转到主要内容

恢复已注销账号

恢复因注销请求而处于待删除状态的账号。 超过注销宽限期的账号无法恢复。

调用信息

AccountManager.WithDrawalRestore(string withdrawalKey, PlayNANOODelegate callback) {}

调用详细信息

参数说明类型
withdrawalKey认证服务返回的账号注销查询密钥string
callback通信结果PlayNANOODelegate

源代码

using PlayNANOO;

public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;

void Start()
{
plugin = Plugin.GetInstance();

string withdrawalKey = "string";
plugin.AccountManagerV20240401.WithDrawalRestore(withdrawalKey, (status, errorCode, jsonString, values) => {
if (status.Equals(Configure.PN_API_STATE_SUCCESS))
{
Debug.Log(values["Status"].ToString());
}
else
{
Debug.Log("Fail");
}
});
}
}

通信结果

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"Status" : "String"
}

通信结果详细信息

数据键说明类型
Status处理结果string