JumboTCMS_src/JumboTCMS.API/Discuz/Toolkit/Responses.cs
(开头部分) 12KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Xml.Serialization;
using Newtonsoft.Json;
namespace JumboTCMS.API.Discuz.Toolkit
{
[XmlRoot("auth_createToken_response", Namespace = "http://nt.discuz.net/api/", IsNullable = false)]
public class TokenInfo
{
[XmlElement("session_key")]
public string Token;
}
/// <summary>
/// Session信息类
/// </summary>
[XmlRoot("auth_getSession_response", Namespace = "http://nt.discuz.net/api/", IsNullable = false)]
public class SessionInfo
{
[XmlElement("session_key")]
public string SessionKey;
[XmlElement("uid")]
public long UId;
[XmlIgnore]
public string Secret;
[XmlElement("user_name")]
public string UserName;
[XmlElement("expires")]
public long Expires;
public SessionInfo()
{ }
// use this if you want to create a session based on infinite session
// credentials
public SessionInfo(string session_key, long uid, string secret, string rest_url)
{
this.SessionKey = session_key;
this.UId = uid;
this.Secret = secret;
this.Expires = 0;
}
}
[XmlRoot("auth_register_response", Namespace = "http://nt.discuz.net/api/", IsNullable = false)]
public class RegisterResponse
{
[XmlText]
public int Uid;
}
[XmlRoot("auth_encodePassword_response", Namespace = "http://nt.discuz.net/api/", IsNullable = false)]
public class EncodePasswordResponse
{
[XmlText]
后面还有 385 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。