This commit is contained in:
“wanyongkang”
2021-04-24 15:48:27 +08:00
parent 91a476850a
commit 70d4e9a6a3
3 changed files with 27 additions and 27 deletions

View File

@@ -573,16 +573,16 @@
</div>
</div>
<p class="youhuiNew" style="padding:0;margin:0;color:white;background-color:#FF0033;">一毛钱活动:不分新老用户都可参加!</p>
@if(item.Product.Id == 5){
@* @if(item.Product.Id == 5){
<br>
<p class="youhuiNew" style="padding:0;margin:0;color:white;background-color:#99CC00;"><span style="font-size:30px;">恢复公告:</span><br>老鹰IP已恢复运营已更新最新的IP池产品稳定性也做了大幅度的升级请下载使用最新版的客户端和IP线路表。<br>
为答谢各位对老鹰IP一直以来的选择和支持特推出全部套餐8折狂欢价 祝各位用户万事顺利,生意兴隆!</p>
<p class="youhuiNew"></p>
}
} *@
@if(item.Product.Id == 13){
<p class="youhuiNew">购买须知本产品以下地区屏蔽微信和QQ北上广深成都金华阳江肇庆云浮苏州泰州南通镇江南京淮安其他地区不受限制<br></p>
<p class="youhuiNew">双月卡赠送1个月仅限新开账号续费帐号不赠送活动截止时间2020年4月15日<br>同一个IP账号仅限一次每位会员不限账号数量您可购买多个IP账号都有赠送</p>
}
@if(item.Product.Id == 17){
<p class="youhuiNew">购买须知本产品以下地区屏蔽微信和QQ北上广深成都金华阳江肇庆云浮苏州泰州南通镇江南京淮安其他地区不受限制<br></p>
<p class="youhuiNew">双月卡赠送1个月仅限新开账号续费帐号不赠送活动截止时间2020年4月15日<br>同一个IP账号仅限一次每位会员不限账号数量您可购买多个IP账号都有赠送</p>
}
@* @if(item.Product.Id == 18){
@@ -594,17 +594,15 @@
@* @if(item.Product.Id == 14){
<p class="youhuiNew">应上级主管部门要求,为了遵守相关法律法规,合法合规运营,对本产品进行整改。<br>整改期间未到期账号可正常使用不能新开及续费。整改工作结束时间会在18号左右公布由此给您带来很大的麻烦请您谅解。</p>
} *@
@* @if(item.Product.Id == 1){
<p class="youhuiNew" style="background-color:#FFFF00;">公告:<br>强子IP已更新完毕截止于3月15日晚上10点半所有未到期的账号包括天卡已补两天时间。<br>
电脑客户端强子IP和讯连IP已更新完毕您可到软件下载中下载最新版本</p>
@if(item.Product.Id == 1){
<p class="youhuiNew">购买须知本产品以下地区屏蔽微信和QQ北上广深江苏省全部地区浙江省全部地区广东省全部地区。</p>
}
@if(item.Product.Id == 2){
<p class="youhuiNew">公告:<br>强子IP和讯连IP升级完成通知线路表电脑客户端安卓app账号全部已经升级完毕测试卡和天卡也已经恢复购买使用电脑和安卓客户端请到软件下载页面下载最新版若您还不能正常使用请联系官方客服解决问题<br>
此次升级后,也是为了让产品更加稳定,给您带来不便,敬请谅解!</p>
} *@
@* @if(item.Product.Id == 6){
<p class="youhuiNew">双月卡赠送1个月新开和续费都有赠送活动截止时间2021年3月1日<br>同一个IP账号不限次数<span style="color:FF0033;background-color:#FFFF33;">您可对同一账号多次续费都有赠送</span>每位会员不限账号数量您可购买多个IP账号都有赠送</p>
} *@
<p class="youhuiNew">购买须知本产品以下地区屏蔽微信和QQ北上广深江苏省全部地区浙江省全部地区广东省全部地区。</p>
}
@if(item.Product.Id == 6){
<p class="youhuiNew">购买须知本产品以下地区屏蔽微信和QQ北上广深成都金华阳江肇庆云浮苏州泰州南通镇江南京淮安其他地区不受限制<br></p>
}
@* @if(item.Product.Id == 8){
<p class="youhuiNew">月卡送10天双月卡赠送1个月活动截止时间2021年3月31日<br>同一个IP账号不限次数<span style="color:FF0033;background-color:#FFFF33;">您可对同一账号多次续费都有赠送</span>每位会员不限账号数量您可购买多个IP账号都有赠送</p>
} *@

View File

@@ -546,10 +546,12 @@
} else {
this.auto_discount_text = '';
}
//最低价
var min_cost = @(Model.Package.MinPrice) * this.OneBuyModel.ConnectCount - this.OneBuyModel.CouponAmount;
if(total<min_cost){
total = min_cost;
if(total != 0.1){
//最低价
var min_cost = @(Model.Package.MinPrice) * this.OneBuyModel.ConnectCount - this.OneBuyModel.CouponAmount;
if(total<min_cost){
total = min_cost;
}
}
}

View File

@@ -422,7 +422,7 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
if (ret.Code != ResultCode.C_SUCCESS) return ret;
using (var tran = await m_DbContext.Database.BeginTransactionAsync())
using (var tran1 = await m_DbContext.Database.BeginTransactionAsync())
{
try
{
@@ -430,12 +430,12 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
await this.Add(order);
if (request.CouponId > 0)
await m_CouponService.Use(request.CouponId, order.OrderNo, userId, 1);
tran.Commit();
tran1.Commit();
}
catch (Exception ex)
{
LogHelper.Error("CreateOrder", ex.Message);
tran.Rollback();
tran1.Rollback();
return new ApiResult<ProductOrderEntity>(ResultCode.C_UNKNOWN_ERROR, "提交订单失败");
}
}
@@ -666,7 +666,7 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
};
accountEntitys.Add(accountEntity);
});
using (var tran = await m_DbContext.Database.BeginTransactionAsync())
using (var tran2 = await m_DbContext.Database.BeginTransactionAsync())
{
try
{
@@ -675,13 +675,13 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
order.StartTime = DateTime.Now;
order.EndTime = DateTime.Now.AddDays(order.DayCount);
await this.Update(order);
tran.Commit();
tran2.Commit();
}
catch (Exception ex)
{
LogHelper.Error("处理订单创建账号", ex);
isOk = false;
tran.Rollback();
tran2.Rollback();
}
}
if (isOk)
@@ -757,7 +757,7 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
account.ProductName = order.ProductName;
account.AccountType = (int)order.OrderType;
});
using (var tran = await m_DbContext.Database.BeginTransactionAsync())
using (var tran3 = await m_DbContext.Database.BeginTransactionAsync())
{
try
{
@@ -766,13 +766,13 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
order.StartTime = DateTime.Now;
order.EndTime = DateTime.Now.AddDays(order.DayCount);
await this.Update(order);
tran.Commit();
tran3.Commit();
}
catch (Exception ex)
{
LogHelper.Error("处理续费订单", ex);
isOk = false;
tran.Rollback();
tran3.Rollback();
}
}
if (isOk)