This commit is contained in:
“wanyongkang”
2021-09-03 20:06:23 +08:00
parent 8e153de719
commit 0d8408b879
4 changed files with 15 additions and 9 deletions

View File

@@ -26,7 +26,7 @@ namespace Hncore.Pass.Vpn.Service
string SingleAddUrl { get; set; } = "api/index/AddAccount?apikey=80cf4f64e990b78a9fc5eb&";
string SingleReAddUrl { get; set; } = "api/index/updateAccount?apikey=80cf4f64e990b78a9fc5eb&";
string MuiltAddUrl { get; set; } = "agent/memberMuiltAdd.html";
string RefundUrl { get; set; } = "api/number/refund";
string RefundUrl { get; set; } = "api/index/refund?apikey=80cf4f64e990b78a9fc5eb&";
string UpdateUrl = "api/index/updateAccount?apikey=80cf4f64e990b78a9fc5eb&";//agent/memberUpdate/id/1155709.html
string OnlineUrl { get; set; } = "api/index/getOnlineList?apikey=80cf4f64e990b78a9fc5eb&";
string KIllUrl { get; set; } = "api/index/disconnect?apikey=80cf4f64e990b78a9fc5eb&";
@@ -284,6 +284,12 @@ namespace Hncore.Pass.Vpn.Service
/// <returns></returns>
public override async Task<ApiResult> Refund(string account, string packageKey, int days)
{
var client = CreateHttpClient();
var url = this.RefundUrl + "username=" + account;
var resp = await client.GetAsync(url);
var content = await resp.Content.ReadAsStringAsync();
return new ApiResult(1);
}
/// <summary>