This commit is contained in:
“wanyongkang”
2022-07-25 22:44:01 +08:00
parent c286ded801
commit 3987a22b26
11 changed files with 33 additions and 34 deletions

View File

@@ -121,9 +121,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 (ProductAccountCount == 0 && (m.DayCount == 1||m.DayCount == 2) && m.Id != 1034&&m.Id != 1040&&m.Id != 1079&&m.Id != 1073){
// m.Price = 0.1M;
// }
});
}
} else {
@@ -149,9 +149,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 (ProductAccountCount == 0 && (m.DayCount == 1||m.DayCount == 2) && m.Id != 1034&&m.Id != 1040&&m.Id != 1079&&m.Id != 1073){
// m.Price = 0.1M;
// }
});
}
}
@@ -169,9 +169,9 @@ namespace Home.Controllers
if (m.ProductId == 6||m.ProductId == 5||m.ProductId == 23){
m.Title = "9";
}
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.DayCount == 1||m.DayCount == 2) && m.Id != 1034&&m.Id != 1040 &&m.Id != 1079&&m.Id != 1073){
// m.Price = 0.1M;
// }
});
}
}
@@ -183,7 +183,6 @@ namespace Home.Controllers
{
var userId = this.Request.GetUserInfo().UserId;
var ret = await m_ProductOrderService.CreateOrder(request, userId);
if (ret.Code != ResultCode.C_SUCCESS)
{
return ret;
@@ -232,7 +231,7 @@ namespace Home.Controllers
}
if (ret.Data.OtherPayAmount == 0)
{
await m_ProductOrderService.ProcessOrderAccount(ret.Data);
await m_ProductOrderService.ApiProcessOrderAccount(ret.Data,"api开通");
return new ApiResult("00");
}
@@ -809,9 +808,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 (ProductAccountCount == 0 && (package.DayCount == 1 ||package.DayCount == 2)&&package.Id != 1079&&package.Id != 1073){
// package.Price = 0.1M;
// }
return View("buy", new PackageInfoResponse()
{