星星无尽备注
This commit is contained in:
@@ -77,12 +77,14 @@ namespace Hncore.Pass.Vpn.Service
|
||||
{
|
||||
|
||||
var remark = "";
|
||||
|
||||
if(account.Contains("-")){
|
||||
string[] arrStr = account.Split('-');
|
||||
account = arrStr[0];
|
||||
remark = arrStr[1];
|
||||
}
|
||||
|
||||
|
||||
Random rd = new Random(Guid.NewGuid().GetHashCode());
|
||||
int i = rd.Next();
|
||||
|
||||
@@ -105,6 +107,7 @@ namespace Hncore.Pass.Vpn.Service
|
||||
JObject jo = (JObject)JsonConvert.DeserializeObject(content);
|
||||
var status = jo["errcode"].ToString();
|
||||
|
||||
|
||||
if (status =="0")
|
||||
{
|
||||
return new ApiResult(ResultCode.C_SUCCESS);
|
||||
|
||||
@@ -608,7 +608,7 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
|
||||
|
||||
if(order.ProductId == 8||order.ProductId == 7) {
|
||||
//用户信息
|
||||
user_remark = "姓名:"+userEntity.Name.Substring(0,1) + "**,手机号:" + userEntity.Phone.Substring(0,3) + "***,身份证号:" + userEntity.id_code.Substring(0,3) + "***,注:因用户信息属于敏感隐私信息,所以部分隐藏展示,如有需要可联系我司调取!";
|
||||
user_remark = userEntity.Name.Substring(0,1) + "**" + userEntity.Phone.Substring(0,3) + "********" + userEntity.id_code.Substring(0,3)+"***************";
|
||||
|
||||
}
|
||||
|
||||
@@ -678,6 +678,9 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
|
||||
if (ret_exit != true){
|
||||
if(accountEntity.PackageId.Value == 86 || accountEntity.PackageId.Value == 88){
|
||||
ret = await m_AgentService.NewAccount(order.Id, accountEntity.PackageId.Value, accountEntity.Account, accountEntity.Pwd, accountEntity.ConnectCount,1,2);
|
||||
} else if(accountEntity.ProductId.Value == 8 || accountEntity.ProductId.Value == 7){
|
||||
var account_remark = accountEntity.Account + "-" + user_remark;
|
||||
ret = await m_AgentService.NewAccount(order.Id, accountEntity.PackageId.Value, account_remark, accountEntity.Pwd, accountEntity.ConnectCount,1,2);
|
||||
} else {
|
||||
ret = await m_AgentService.NewAccount(order.Id, accountEntity.PackageId.Value, accountEntity.Account, accountEntity.Pwd, accountEntity.ConnectCount);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user