diff --git a/Host/Controllers/ProductController.cs b/Host/Controllers/ProductController.cs index 9b259be..f210609 100644 --- a/Host/Controllers/ProductController.cs +++ b/Host/Controllers/ProductController.cs @@ -90,7 +90,7 @@ namespace Home.Controllers var user_Info = await m_UserService.GetById(userInfo.UserId); var ProductAccountCount = user_Info.ProductAccountCount; - if(user_Info.agent_id == 0||(user_Info.agent_id != 0 && user_Info.discount_id != 0)){ + if((user_Info.agent_id == 0||(user_Info.agent_id != 0 && user_Info.discount_id != 0)) && user_Info.discount_id >= 0){ //根据折扣设置价格 var discount = await m_ProductPriceSchemeService.GetById(user_Info.discount_id); @@ -740,7 +740,7 @@ namespace Home.Controllers var ProductAccountCount = user_Info.ProductAccountCount; var dis_price = 1000000M; - if(user_Info.agent_id == 0||(user_Info.agent_id != 0 && user_Info.discount_id != 0)){ + if((user_Info.agent_id == 0||(user_Info.agent_id != 0 && user_Info.discount_id != 0)) && user_Info.discount_id >= 0){ //根据折扣设置价格 var discount = await m_ProductPriceSchemeService.GetById(user_Info.discount_id); if (discount != null) @@ -808,7 +808,7 @@ namespace Home.Controllers //从user表获取用户信息 var user_Info = await m_UserService.GetById(userInfo.UserId); - if(user_Info.agent_id == 0||(user_Info.agent_id != 0 && user_Info.discount_id != 0)){ + if((user_Info.agent_id == 0||(user_Info.agent_id != 0 && user_Info.discount_id != 0)) && user_Info.discount_id >= 0){ //根据折扣设置价格 var discount = await m_ProductPriceSchemeService.GetById(user_Info.discount_id); @@ -872,7 +872,7 @@ namespace Home.Controllers var user_Info = await m_UserService.GetById(userId); var dis_price = 1000000M; - if(user_Info.agent_id == 0||(user_Info.agent_id != 0 && user_Info.discount_id != 0)){ + if((user_Info.agent_id == 0||(user_Info.agent_id != 0 && user_Info.discount_id != 0)) && user_Info.discount_id >= 0){ //根据折扣设置价格 var discount = await m_ProductPriceSchemeService.GetById(user_Info.discount_id); if (discount != null) diff --git a/Host/Views.Mobile/Home/Index.cshtml b/Host/Views.Mobile/Home/Index.cshtml index 5a23f8f..20b4117 100644 --- a/Host/Views.Mobile/Home/Index.cshtml +++ b/Host/Views.Mobile/Home/Index.cshtml @@ -289,15 +289,15 @@

公告

X -

聚IP官网已更新为自动更改折扣优惠价

-

总消费超过200,自动升级为白银9折

-

总消费超过500,自动升级为黄金8折

-

...

-

几乎所有用户在此次自动更新后优惠都变的更大了,可能出现个别用户价格比之前的高,可联系客服帮您更改手动更改折扣。

-

如果您对价格有疑问也可联系客服帮您更改折扣!

-

如果您有更大用量或销量,可咨询客服获取更低的折扣!

+

五一活动:会员定向优惠,抄底折扣,将于5月10日结束。

+

活动结束后,所有会员将恢复原来价格。

+

对价格问题若有疑问,可联系在线客服帮您调价!

+

复工季活动,将于5月15日结束:

+

聚IP助力开工,全部产品所有套餐9折狂欢价,月卡低至61元,量大价更低

+

其他活动:

1.动态IP一毛钱一天,每用户限一次。

-

2.复工季,聚IP助力开工,全部产品所有套餐8折狂欢价,月卡低至50多,量大价更低!

+

2.极客IP,西瓜IP,双月卡送一个月。

+

3.需求5个以上可联系客服设置优惠折扣!

diff --git a/Host/Views.Mobile/Product/Index.cshtml b/Host/Views.Mobile/Product/Index.cshtml index 23d415d..afe776a 100644 --- a/Host/Views.Mobile/Product/Index.cshtml +++ b/Host/Views.Mobile/Product/Index.cshtml @@ -38,7 +38,7 @@

欢迎淘宝下单,每次下单都会随机赠送优惠券,最低54元
优惠券支持所有套餐!点击去淘宝店铺付款 

-

总消费满200元,即可享受超值优惠价

+

需求五个以上

联系客服设置优惠价

>>>联系客服<<<

diff --git a/Host/Views.Mobile/Product/ReBuyIndex.cshtml b/Host/Views.Mobile/Product/ReBuyIndex.cshtml index fbc599e..9912977 100644 --- a/Host/Views.Mobile/Product/ReBuyIndex.cshtml +++ b/Host/Views.Mobile/Product/ReBuyIndex.cshtml @@ -30,7 +30,7 @@

欢迎淘宝下单,每次下单都会随机赠送优惠券,最低54元
优惠券支持所有套餐!点击去淘宝店铺付款 

-

总消费满200元,即可享受超值优惠价

+

需求五个以上

联系客服设置优惠价

>>>联系客服<<<

diff --git a/Host/Views.Mobile/Product/buy.cshtml b/Host/Views.Mobile/Product/buy.cshtml index bfd16be..f22f7a6 100644 --- a/Host/Views.Mobile/Product/buy.cshtml +++ b/Host/Views.Mobile/Product/buy.cshtml @@ -458,45 +458,13 @@ total= total < 0 ? 0 : total; total = parseFloat(total.toFixed(2)); - if(@(userEntity.agent_id) == 0){ - var consume_value = @(userEntity.ConsumeAmount); - var cost_money = total + consume_value; - var discount = 100; - if (cost_money>=200 && cost_money<500){ - discount = 90; - this.auto_discount_text = '自动升级至 9 折会员'; - } else if(cost_money>=500 && cost_money<1500) { - discount = 80; - this.auto_discount_text = '自动升级至 8 折会员'; - } else if(cost_money>=1500 && cost_money<3000) { - discount = 70; - this.auto_discount_text = '自动升级至 7 折会员'; - } else if(cost_money>=3000 && cost_money<6000) { - discount = 65; - this.auto_discount_text = '自动升级至 6.5 折会员'; - } else if(cost_money>=6000) { - discount = 60; - this.auto_discount_text = '自动升级至 6 折会员'; - } - - var need_cost = 100000000; - - if(discount != 100){ - need_cost = @(Model.Package.LinePrice) * this.OneBuyModel.ConnectCount * discount / 100 - this.OneBuyModel.CouponAmount; - } - - if(need_cost=200 && cost_money<500){ - discount = 90; - this.auto_discount_text = '自动升级至 9 折会员'; - } else if(cost_money>=500 && cost_money<1500) { - discount = 80; - this.auto_discount_text = '自动升级至 8 折会员'; - } else if(cost_money>=1500 && cost_money<3000) { - discount = 70; - this.auto_discount_text = '自动升级至 7 折会员'; - } else if(cost_money>=3000 && cost_money<6000) { - discount = 65; - this.auto_discount_text = '自动升级至 6.5 折会员'; - } else if(cost_money>=6000) { - discount = 60; - this.auto_discount_text = '自动升级至 6 折会员'; - } - - var need_cost = 100000000; - - if(discount != 100){ - need_cost = @(Model.Package.LinePrice) * this.MoreBuyModel.ConnectCount * this.MoreBuyModel.MaxPostfix * discount / 100 - this.MoreBuyModel.CouponAmount; - } - - if(need_cost=200 && cost_money<500){ - discount = 90; - this.auto_discount_text = '自动升级至 9 折会员'; - } else if(cost_money>=500 && cost_money<1500) { - discount = 80; - this.auto_discount_text = '自动升级至 8 折会员'; - } else if(cost_money>=1500 && cost_money<3000) { - discount = 70; - this.auto_discount_text = '自动升级至 7 折会员'; - } else if(cost_money>=3000 && cost_money<6000) { - discount = 65; - this.auto_discount_text = '自动升级至 6.5 折会员'; - } else if(cost_money>=6000) { - discount = 60; - this.auto_discount_text = '自动升级至 6 折会员'; - } - - var need_cost = 100000000; - - if(discount != 100){ - need_cost = @(Model.Package.LinePrice) * this.OneBuyModel.ConnectCount * count * discount / 100 - this.OneBuyModel.CouponAmount; - } - - if(need_cost

公告

X -

聚IP官网已更新为自动更改折扣优惠价

-

总消费超过200,自动升级为白银9折

-

总消费超过500,自动升级为黄金8折

-

...

-

几乎所有用户在此次自动更新后优惠都变的更大了,可能出现个别用户价格比之前的高,可联系客服帮您更改手动更改折扣。

-

如果您对价格有疑问也可联系客服帮您更改折扣!

-

如果您有更大用量或销量,可咨询客服获取更低的折扣!

+

五一活动:会员定向优惠,抄底折扣,将于5月10日结束。

+

活动结束后,所有会员将恢复原来价格。

+

对价格问题若有疑问,可联系在线客服帮您调价!

+

复工季活动,将于5月15日结束:

+

聚IP助力开工,全部产品所有套餐9折狂欢价,月卡低至61元,量大价更低

+

其他活动:

1.动态IP一毛钱一天,每用户限一次。

-

2.复工季,聚IP助力开工,全部产品所有套餐8折狂欢价,月卡低至50多,量大价更低!

+

2.极客IP,西瓜IP,双月卡送一个月。

+

3.需求5个以上可联系客服设置优惠折扣!

diff --git a/Host/Views/Product/Index.cshtml b/Host/Views/Product/Index.cshtml index fbc13c7..4c4e307 100644 --- a/Host/Views/Product/Index.cshtml +++ b/Host/Views/Product/Index.cshtml @@ -491,7 +491,7 @@

-

总消费满200元,即可享受超值优惠价

+

需求五个以上

联系客服设置优惠价

>>>联系客服<<<

@@ -791,7 +791,7 @@
-

总消费满200元,即可享受超值优惠价

+

温馨提示:需求5个以上,可以联系客服设置优惠价

开通后有任何问题可无理由退款,并支持自助提现

diff --git a/Host/Views/Product/ReBuyIndex.cshtml b/Host/Views/Product/ReBuyIndex.cshtml index 3fcfbf4..21bd5ce 100644 --- a/Host/Views/Product/ReBuyIndex.cshtml +++ b/Host/Views/Product/ReBuyIndex.cshtml @@ -370,7 +370,7 @@
-

总消费满200元,即可享受超值优惠价

+

需求五个以上

联系客服设置优惠价

>>>联系客服<<<

@@ -613,7 +613,7 @@
-

总消费满200元,即可享受超值优惠价

+

温馨提示:需求5个以上,可以联系客服设置优惠价

开通后有任何问题可无理由退款,并支持自助提现

diff --git a/Host/Views/Product/buy.cshtml b/Host/Views/Product/buy.cshtml index 93b2c75..c7a45ec 100644 --- a/Host/Views/Product/buy.cshtml +++ b/Host/Views/Product/buy.cshtml @@ -514,38 +514,6 @@ total = parseFloat(total.toFixed(2)); - if(@(userEntity.agent_id) == 0){ - var consume_value = @(userEntity.ConsumeAmount); - var cost_money = total + consume_value; - var discount = 100; - if (cost_money>=200 && cost_money<500){ - discount = 90; - this.auto_discount_text = '(自动升级至 9 折会员)'; - } else if(cost_money>=500 && cost_money<1500) { - discount = 80; - this.auto_discount_text = '(自动升级至 8 折会员)'; - } else if(cost_money>=1500 && cost_money<3000) { - discount = 70; - this.auto_discount_text = '(自动升级至 7 折会员)'; - } else if(cost_money>=3000 && cost_money<6000) { - discount = 65; - this.auto_discount_text = '(自动升级至 6.5 折会员)'; - } else if(cost_money>=6000) { - discount = 60; - this.auto_discount_text = '(自动升级至 6 折会员)'; - } - - var need_cost = 100000000; - - if(discount != 100){ - need_cost = @(Model.Package.LinePrice) * this.OneBuyModel.ConnectCount * discount / 100 - this.OneBuyModel.CouponAmount; - } - - if(need_cost=200 && cost_money<500){ - discount = 90; - this.auto_discount_text = '(自动升级至 9 折会员)'; - } else if(cost_money>=500 && cost_money<1500) { - discount = 80; - this.auto_discount_text = '(自动升级至 8 折会员)'; - } else if(cost_money>=1500 && cost_money<3000) { - discount = 70; - this.auto_discount_text = '(自动升级至 7 折会员)'; - } else if(cost_money>=3000 && cost_money<6000) { - discount = 65; - this.auto_discount_text = '(自动升级至 6.5 折会员)'; - } else if(cost_money>=6000) { - discount = 60; - this.auto_discount_text = '(自动升级至 6 折会员)'; - } - - var need_cost = 100000000; - //计算折扣价 - if(discount != 100){ - need_cost = @(Model.Package.LinePrice) * this.MoreBuyModel.ConnectCount * this.MoreBuyModel.MaxPostfix * discount / 100 - this.MoreBuyModel.CouponAmount; - } - //比较价格,走最低价 - if(need_cost=200 && cost_money<500){ - discount = 90; - this.auto_discount_text = '(自动升级至 9 折会员)'; - } else if(cost_money>=500 && cost_money<1500) { - discount = 80; - this.auto_discount_text = '(自动升级至 8 折会员)'; - } else if(cost_money>=1500 && cost_money<3000) { - discount = 70; - this.auto_discount_text = '(自动升级至 7 折会员)'; - } else if(cost_money>=3000 && cost_money<6000) { - discount = 65; - this.auto_discount_text = '(自动升级至 6.5 折会员)'; - } else if(cost_money>=6000) { - discount = 60; - this.auto_discount_text = '(自动升级至 6 折会员)'; - } - - var need_cost = 100000000; - - if(discount != 100){ - need_cost = @(Model.Package.LinePrice) * this.OneBuyModel.ConnectCount * count * discount / 100 - this.OneBuyModel.CouponAmount; - } - - if(need_cost= 0){ //根据折扣设置价格 var discount = await m_ProductPriceSchemeService.GetById(userEntity.discount_id); if (discount != null) @@ -273,54 +273,6 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel, is_user_price = false; } } - - if(userEntity.agent_id == 0){ - - var cost_price = price; - if(cost_price > dis_price){ - cost_price = dis_price; - } - - //自动使用折扣 - var cost = 0M; - if (request.OrderType == OrderType.New || request.OrderType == OrderType.AgainBuy) - { - cost = cost_price * request.ConnectCount; - } - - if (request.OrderType == OrderType.News) - { - var accounts = GreateBatchAccount(request.Account, request.MinPostfix, request.MaxPostfix); - cost = cost_price * request.ConnectCount * accounts.Count; - } - - if (request.OrderType == OrderType.AgainBuys) - { - int count = request.Account.Split(",").Length; - cost = cost_price * request.ConnectCount * count; - } - var cost_money = cost + userEntity.ConsumeAmount; - var discount_reset = 100; - if (cost_money>=200 && cost_money<500){ - discount_reset = 90; - } else if(cost_money>=500 && cost_money<1500) { - discount_reset = 80; - } else if(cost_money>=1500 && cost_money<3000) { - discount_reset = 70; - } else if(cost_money>=3000 && cost_money<6000) { - discount_reset = 65; - } else if(cost_money>=6000) { - discount_reset = 60; - } - if (discount != null) - { - if(discount_reset m.UserId == userId && m.PackageId == packageEntity.Id && m.Status == 1); @@ -824,7 +776,7 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel, //根据折扣设置价格 var score_money = 0.00M; - if(userEntity.agent_id == 0||(userEntity.agent_id != 0 && userEntity.discount_id != 0)){ + if((userEntity.agent_id == 0||(userEntity.agent_id != 0 && userEntity.discount_id != 0)) && userEntity.discount_id >= 0){ //获取代理折扣 var discount = await m_ProductPriceSchemeService.GetById(agentEntity.discount_id); var packageEntity = await m_ProductPackageService.GetById(order.PackageId); @@ -1009,7 +961,7 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel, //折扣 var refundDayPrice = 10.00M; var userEntity = await m_UserService.GetById(userId); - if(userEntity.agent_id == 0||(userEntity.agent_id != 0 && userEntity.discount_id != 0)){ + if((userEntity.agent_id == 0||(userEntity.agent_id != 0 && userEntity.discount_id != 0)) && userEntity.discount_id >= 0){ //获取代理折扣 var discount = await m_ProductPriceSchemeService.GetById(userEntity.discount_id); if (discount != null){ @@ -1100,7 +1052,7 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel, // var re_money = 0.00M; - if(userEntity.agent_id == 0||(userEntity.agent_id != 0 && userEntity.discount_id != 0)){ + if((userEntity.agent_id == 0||(userEntity.agent_id != 0 && userEntity.discount_id != 0)) && userEntity.discount_id >= 0){ //获取代理折扣 var discount = await m_ProductPriceSchemeService.GetById(agentEntity.discount_id); re_money = useDay * (refundDayPrice - (product.RefundDayPrice).ToDecimal() * discount.discount / 100) * accountInfo.ConnectCount; @@ -1165,7 +1117,7 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel, //折扣 var refundDayPrice = 10.00M; var userEntity = await m_UserService.GetById(userId); - if(userEntity.agent_id == 0||(userEntity.agent_id != 0 && userEntity.discount_id != 0)){ + if((userEntity.agent_id == 0||(userEntity.agent_id != 0 && userEntity.discount_id != 0)) && userEntity.discount_id >= 0){ //获取代理折扣 var discount = await m_ProductPriceSchemeService.GetById(userEntity.discount_id); if (discount != null){