This commit is contained in:
“wanyongkang”
2021-09-03 13:54:44 +08:00
parent 657128f444
commit 8e153de719
6 changed files with 115 additions and 356 deletions

View File

@@ -112,7 +112,7 @@ namespace Home.Controllers
if(m.Price<m.MinPrice){
m.Price = m.MinPrice;
}
if (ProductAccountCount == 0 && m.DayCount == 1){
if (ProductAccountCount == 0 && (m.DayCount == 1||m.DayCount == 2)){
m.Price = 0.1M;
}
});
@@ -131,7 +131,7 @@ namespace Home.Controllers
{
m.Price = userPrice.UserPrice;
}
if (ProductAccountCount == 0 && m.DayCount == 1){
if (ProductAccountCount == 0 && (m.DayCount == 1||m.DayCount == 2)){
m.Price = 0.1M;
}
});
@@ -142,7 +142,7 @@ namespace Home.Controllers
{
product.Packages.ForEach(m => {
m.Title = "9.5";
if ( m.DayCount == 1 ){
if (m.DayCount == 1||m.DayCount == 2 ){
m.Price = 0.1M;
}
});
@@ -762,7 +762,7 @@ namespace Home.Controllers
package.Price = package.MinPrice;
}
if (ProductAccountCount == 0 && package.DayCount == 1){
if (ProductAccountCount == 0 && (package.DayCount == 1 ||package.DayCount == 2)){
package.Price = 0.1M;
}