using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LoyalSoftSDK { /// /// 设置 /// class Config { /// /// 龙游SDK的api请求地址 /// public const string api_url = "https://api.game7000.com/sdk/WebServer/Amfphp/index.php"; /// /// 查询实名游戏时间:参数:pid /// 返回: /// public const string realInfo_url = "https://api.game7000.com/sdk/WebServer/Amfphp/service_call/InquireApi/GetExtInfo.php"; /// /// 上报游戏时长:参数:pid,累加值 /// public const string realReport_url = "https://api.game7000.com/sdk/WebServer/Amfphp/service_call/InquireApi/ReportGTS.php"; /// /// 发送通讯时用这个字符串拼接到数据后面计算md5值,作为sign /// public const string keyStr = "Sanders will affect the end vote."; /// /// 计算上报游戏时长消息的md5校验码 /// /// /// public static string CalcReportSgin(string data){ return RegexInspection.GetMD5Hash(data + keyStr); } } /// /// 防沉迷 查询/上报消息的返回值 /// class RealInfo_ret { /// /// 错误码, 0 成功, 非0 其他错误 /// public int ret; /// /// 返回值 /// public UserAgeAuditRet data; /// /// md5签名 /// public string sign; /// /// 附加(错误)信息 /// public string msg; /// /// 未成年实名信息返回值 /// public class UserAgeAuditRet { /// /// 是否已经实名 /// public bool isRealname; /// /// 年龄段: 00 成年, 08 8周岁及以下, 16 8~16周岁, 18 16~18周岁 /// public string ageType; /// /// 当天累计游戏时长(单位:秒) /// public int todayGameTime; } } }