diff --git a/Services/Hncore.Pass.Vpn/Service/AgentClient7Service.cs b/Services/Hncore.Pass.Vpn/Service/AgentClient7Service.cs
index a5212a3..d9ea27e 100644
--- a/Services/Hncore.Pass.Vpn/Service/AgentClient7Service.cs
+++ b/Services/Hncore.Pass.Vpn/Service/AgentClient7Service.cs
@@ -179,15 +179,27 @@ namespace Hncore.Pass.Vpn.Service
///
public override async Task NewAccount(string packageKey, string account, string pwd, int connCount = 1, int accountType = 1, int payCount = 1)
{
- var client = CreateHttpClient();
+ var client = CreateHttpClient();
+ var package = "m";
+ var buyCount = "1";
+ if(packageKey =="m3"){
+ package = "m";
+ buyCount = "3";
+ } else if(packageKey =="m12"){
+ package = "m";
+ buyCount = "12";
+ } else {
+ package = packageKey;
+ buyCount = payCount.ToString();
+ }
var map = new SortedDictionary(){
{"user",account },
{"passwd",pwd },
{"num","1"},
{"conn_max",connCount.ToString() },
{"test",packageKey=="test"?"1":"0" },
- {"type",packageKey=="test"?"d":packageKey },
- {"paynum",payCount.ToString() },
+ {"type",packageKey=="test"?"d":package },
+ {"paynum",buyCount },
{"mobile","17719092232" },
};
var title = GetOpTitle("NewAccount", account);
@@ -228,6 +240,18 @@ namespace Hncore.Pass.Vpn.Service
public override async Task NewReAccount(string packageKey, string id, int connCount, int payCount = 1)
{
var ret = await this.GetAccountInfo(id);
+ var package = "m";
+ var buyCount = "1";
+ if(packageKey =="m3"){
+ package = "m";
+ buyCount = "3";
+ } else if(packageKey =="m12"){
+ package = "m";
+ buyCount = "12";
+ } else {
+ package = packageKey;
+ buyCount = payCount.ToString();
+ }
if (ret.Code != ResultCode.C_SUCCESS|| ret.Data==null)
{
return new ApiResult(ResultCode.C_INVALID_ERROR, "账户不存在,续费失败");
@@ -235,8 +259,8 @@ namespace Hncore.Pass.Vpn.Service
var client = CreateHttpClient();
var map = new SortedDictionary(){
{"id",id }, //原始的账号的id
- {"type",packageKey },
- {"paynum","1" },
+ {"type",package },
+ {"paynum",buyCount },
};
var title = GetOpTitle("NewReAccount", id);