设置价格 折扣

This commit is contained in:
“wanyongkang”
2021-04-22 12:37:48 +08:00
parent 7bbadd32c6
commit 7c9f50bed0
2 changed files with 36 additions and 33 deletions

View File

@@ -109,12 +109,12 @@ namespace Home.Controllers
} else {
m.Title = "9";
}
if (ProductAccountCount == 0 && m.DayCount == 1){
m.Price = 0.1M;
}
if(m.Price<m.MinPrice){
m.Price = m.MinPrice;
}
if (ProductAccountCount == 0 && m.DayCount == 1){
m.Price = 0.1M;
}
});
}
} else {
@@ -731,13 +731,13 @@ namespace Home.Controllers
if(dis_price<package.Price){
package.Price = dis_price;
}
if(package.Price<package.MinPrice){
package.Price = package.MinPrice;
}
if (ProductAccountCount == 0 && package.DayCount == 1){
package.Price = 0.1M;
}
if(package.Price<package.MinPrice){
package.Price = package.MinPrice;
}
return View("buy", new PackageInfoResponse()
{