极光1毛钱天卡
This commit is contained in:
@@ -90,6 +90,7 @@ namespace Home.Controllers
|
|||||||
var user_Info = await m_UserService.GetById(userInfo.UserId);
|
var user_Info = await m_UserService.GetById(userInfo.UserId);
|
||||||
var ExpiredProductAccountCount = user_Info.ExpiredProductAccountCount;
|
var ExpiredProductAccountCount = user_Info.ExpiredProductAccountCount;
|
||||||
var mogu_jihu = user_Info.Sex;
|
var mogu_jihu = user_Info.Sex;
|
||||||
|
var jgday = user_Info.jgday;
|
||||||
|
|
||||||
//判断测试卡使用次数是否超过限定次数 false表示免费没用完 true表示免费测试已经用完
|
//判断测试卡使用次数是否超过限定次数 false表示免费没用完 true表示免费测试已经用完
|
||||||
var test_flag = false;
|
var test_flag = false;
|
||||||
@@ -127,6 +128,9 @@ namespace Home.Controllers
|
|||||||
if (mogu_jihu == 0 && (m.Id==1188 || m.Id==1194 || m.Id==1200)){
|
if (mogu_jihu == 0 && (m.Id==1188 || m.Id==1194 || m.Id==1200)){
|
||||||
m.Price = 0.1M;
|
m.Price = 0.1M;
|
||||||
}
|
}
|
||||||
|
if (jgday == 0 && (m.Id==1215 || m.Id==1221 || m.Id==1227)){
|
||||||
|
m.Price = 0.1M;
|
||||||
|
}
|
||||||
//判断测试卡是否收费
|
//判断测试卡是否收费
|
||||||
if (test_flag && (m.IsTest == 1)) {
|
if (test_flag && (m.IsTest == 1)) {
|
||||||
m.Price = 1.0M;
|
m.Price = 1.0M;
|
||||||
@@ -161,6 +165,9 @@ namespace Home.Controllers
|
|||||||
if (mogu_jihu == 0 && ( m.Id==1188 || m.Id==1194 || m.Id==1200)){
|
if (mogu_jihu == 0 && ( m.Id==1188 || m.Id==1194 || m.Id==1200)){
|
||||||
m.Price = 0.1M;
|
m.Price = 0.1M;
|
||||||
}
|
}
|
||||||
|
if (jgday == 0 && (m.Id==1215 || m.Id==1221 || m.Id==1227)){
|
||||||
|
m.Price = 0.1M;
|
||||||
|
}
|
||||||
//判断测试卡是否收费
|
//判断测试卡是否收费
|
||||||
if (test_flag && (m.IsTest == 1)) {
|
if (test_flag && (m.IsTest == 1)) {
|
||||||
m.Price = 1.0M;
|
m.Price = 1.0M;
|
||||||
@@ -182,7 +189,7 @@ namespace Home.Controllers
|
|||||||
m.Title = "0";
|
m.Title = "0";
|
||||||
|
|
||||||
|
|
||||||
if (m.Id == 1012 || m.Id==1188 || m.Id==1194 || m.Id==1200){
|
if (m.Id == 1012 || m.Id==1188 || m.Id==1194 || m.Id==1200 || m.Id==1215 || m.Id==1221 || m.Id==1227){
|
||||||
m.Price = 0.1M;
|
m.Price = 0.1M;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -814,6 +821,7 @@ namespace Home.Controllers
|
|||||||
var user_Info = await m_UserService.GetById(userId);
|
var user_Info = await m_UserService.GetById(userId);
|
||||||
var ExpiredProductAccountCount = user_Info.ExpiredProductAccountCount;
|
var ExpiredProductAccountCount = user_Info.ExpiredProductAccountCount;
|
||||||
var mogu_jihu = user_Info.Sex;
|
var mogu_jihu = user_Info.Sex;
|
||||||
|
var jgday = user_Info.jgday;
|
||||||
|
|
||||||
var dis_price = 1000000M;
|
var dis_price = 1000000M;
|
||||||
if((user_Info.agent_id == 0||(user_Info.agent_id != 0 && user_Info.discount_id != 0)) && user_Info.discount_id >= 0){
|
if((user_Info.agent_id == 0||(user_Info.agent_id != 0 && user_Info.discount_id != 0)) && user_Info.discount_id >= 0){
|
||||||
@@ -846,6 +854,10 @@ namespace Home.Controllers
|
|||||||
package.Price = 0.1M;
|
package.Price = 0.1M;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (jgday == 0 && (package.Id==1215 || package.Id==1221 || package.Id==1227)){
|
||||||
|
package.Price = 0.1M;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return View("buy", new PackageInfoResponse()
|
return View("buy", new PackageInfoResponse()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ namespace Hncore.Pass.BaseInfo.Models
|
|||||||
public string apikey { get; set; }
|
public string apikey { get; set; }
|
||||||
public int TenantId { get; set; }
|
public int TenantId { get; set; }
|
||||||
public int agent_id { get; set; }
|
public int agent_id { get; set; }
|
||||||
|
public int jgday { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 管理员登录名[16
|
/// 管理员登录名[16
|
||||||
|
|||||||
@@ -39,6 +39,9 @@ namespace Hncore.Pass.Vpn.Domain
|
|||||||
public string Profile { get; set; }
|
public string Profile { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
public int jgday { get; set; }
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 状态
|
/// 状态
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -276,6 +276,7 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
|
|||||||
//天卡0.1元
|
//天卡0.1元
|
||||||
var ExpiredProductAccountCount = userEntity.ExpiredProductAccountCount;
|
var ExpiredProductAccountCount = userEntity.ExpiredProductAccountCount;
|
||||||
var mogu_jihu = userEntity.Sex;
|
var mogu_jihu = userEntity.Sex;
|
||||||
|
var jgday = userEntity.jgday;
|
||||||
|
|
||||||
var is_verify = userEntity.is_verify;
|
var is_verify = userEntity.is_verify;
|
||||||
|
|
||||||
@@ -346,6 +347,12 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
|
|||||||
userEntity.Sex = 1;
|
userEntity.Sex = 1;
|
||||||
await m_UserService.Update(userEntity);
|
await m_UserService.Update(userEntity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (( request.PackageId == 1215 || request.PackageId == 1221 || request.PackageId == 1227)&&jgday == 0 && request.OrderType != OrderType.News && (packageEntity.DayCount == 1||packageEntity.DayCount == 2) && request.ConnectCount == 1 && request.OrderType!=OrderType.AgainBuy&& request.OrderType!=OrderType.AgainBuys){
|
||||||
|
price = 0.1M;
|
||||||
|
userEntity.jgday = 1;
|
||||||
|
await m_UserService.Update(userEntity);
|
||||||
|
}
|
||||||
var order = new ProductOrderEntity()
|
var order = new ProductOrderEntity()
|
||||||
{
|
{
|
||||||
AccountCount = 1,
|
AccountCount = 1,
|
||||||
|
|||||||
Reference in New Issue
Block a user