蘑菇1毛钱天卡
This commit is contained in:
@@ -88,7 +88,7 @@ namespace Home.Controllers
|
||||
|
||||
//从user表获取用户信息
|
||||
var user_Info = await m_UserService.GetById(userInfo.UserId);
|
||||
var ProductAccountCount = user_Info.ProductAccountCount;
|
||||
var ExpiredProductAccountCount = user_Info.ExpiredProductAccountCount;
|
||||
|
||||
//判断测试卡使用次数是否超过限定次数 false表示免费没用完 true表示免费测试已经用完
|
||||
var test_flag = false;
|
||||
@@ -120,9 +120,9 @@ namespace Home.Controllers
|
||||
if(m.Price<m.MinPrice){
|
||||
m.Price = m.MinPrice;
|
||||
}
|
||||
// if (ProductAccountCount == 0 && (m.DayCount == 1||m.DayCount == 2) && m.Id != 1034&&m.Id != 1040&&m.Id != 1079&&m.Id != 1073){
|
||||
// m.Price = 0.1M;
|
||||
// }
|
||||
if (ExpiredProductAccountCount == 0 && m.Id == 1012){
|
||||
m.Price = 0.1M;
|
||||
}
|
||||
//判断测试卡是否收费
|
||||
if (test_flag && (m.IsTest == 1)) {
|
||||
m.Price = 1.0M;
|
||||
@@ -150,9 +150,9 @@ namespace Home.Controllers
|
||||
{
|
||||
m.Price = userPrice.UserPrice;
|
||||
}
|
||||
// if (ProductAccountCount == 0 && (m.DayCount == 1||m.DayCount == 2) && m.Id != 1034&&m.Id != 1040&&m.Id != 1079&&m.Id != 1073){
|
||||
// m.Price = 0.1M;
|
||||
// }
|
||||
if (ExpiredProductAccountCount == 0 && m.Id == 1012){
|
||||
m.Price = 0.1M;
|
||||
}
|
||||
//判断测试卡是否收费
|
||||
if (test_flag && (m.IsTest == 1)) {
|
||||
m.Price = 1.0M;
|
||||
@@ -173,9 +173,10 @@ namespace Home.Controllers
|
||||
product.Packages.ForEach(m => {
|
||||
m.Title = "0";
|
||||
|
||||
// if ((m.DayCount == 1||m.DayCount == 2) && m.Id != 1034&&m.Id != 1040 &&m.Id != 1079&&m.Id != 1073){
|
||||
// m.Price = 0.1M;
|
||||
// }
|
||||
|
||||
if (m.Id == 1012){
|
||||
m.Price = 0.1M;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -787,7 +788,7 @@ namespace Home.Controllers
|
||||
|
||||
//从user表获取用户信息
|
||||
var user_Info = await m_UserService.GetById(userId);
|
||||
var ProductAccountCount = user_Info.ProductAccountCount;
|
||||
var ExpiredProductAccountCount = user_Info.ExpiredProductAccountCount;
|
||||
|
||||
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){
|
||||
@@ -812,9 +813,9 @@ namespace Home.Controllers
|
||||
package.Price = package.MinPrice;
|
||||
}
|
||||
|
||||
// if (ProductAccountCount == 0 && (package.DayCount == 1 ||package.DayCount == 2)&&package.Id != 1079&&package.Id != 1073){
|
||||
// package.Price = 0.1M;
|
||||
// }
|
||||
if (ExpiredProductAccountCount == 0 &&package.Id == 1012){
|
||||
package.Price = 0.1M;
|
||||
}
|
||||
|
||||
return View("buy", new PackageInfoResponse()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user