WIn_RustTools/RustTools/ApiFox/mod.cs

51 lines
1.5 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RustTools.muqing;
namespace RustTools.ApiFox;
class mod
{
//最新时间 下载数量 投币数量 更新数量
//latestTime downloadNumbercoinNumber updateNumber
public static string latestTime = "latestTime";
public static string downloadNumber = "downloadNumber";
public static string coinNumber = "coinNumber";
public static string updateNumber = "updateNumber";
/// <summary>
/// 推荐接口
/// </summary>
/// <returns></returns>
public static async Task<string> random()
{
var v = await wl.postAsync("/php/mod.php?action=random", new string[][]{
new string[] { "number", "6" }});
return v ?? string.Empty;
}
public static async Task<string> list(string sortMode, string limit, string tag)
{
var v = await wl.postAsync("/php/mod.php?action=list", new string[][]{
new string[] { "sortMode", sortMode },
new string[] { "limit", limit},
new string[] { "tag",tag }});
return v ?? string.Empty;
}
public static async Task<string> getInfo(string account, string modId)
{
var v = await wl.postAsync("/php/mod.php?action=getInfo", new string[][]{
new string[] { "account", account },
new string[] { "modId", modId}
});
return v ?? string.Empty;
}
}