diff --git a/Host/Controllers/ProductController.cs b/Host/Controllers/ProductController.cs index d06ca80..d35eee1 100644 --- a/Host/Controllers/ProductController.cs +++ b/Host/Controllers/ProductController.cs @@ -739,7 +739,7 @@ namespace Home.Controllers { var product = new ProductEntity(); var package = new ProductPackageEntity(); - if (id==1034||id==1040||id==89||id==1094||id==1103||id==1097){ + if (id==1034||id==1040||id==89||id==1094||id==1103||id==1097||id==60||id==1114){ package = await m_ProductPackageService.Query(m => m.Id == id).FirstOrDefaultAsync(); product = await m_ProductService.GetById(package.ProductId); } else { @@ -928,6 +928,37 @@ namespace Home.Controllers } } + //0 无状态 1:尊享 2:高级 3:普通 + var pro_type_flag_xianfeng = 0; + var pro_type_temp_xianfeng = 0; + if (productId == 6) { + + + + accountList.ForEach(m => { + + + if (m.PackageId<61) { + pro_type_flag_xianfeng = 1; + } + if (m.PackageId>1108&&m.PackageId<1115) { + pro_type_flag_xianfeng = 2; + } + + if (pro_type_temp_xianfeng==0){ + pro_type_temp_xianfeng = pro_type_flag_xianfeng; + } + if (pro_type_temp_xianfeng!=pro_type_flag_xianfeng){ + ViewBag.errorTip = "先锋不同类型不能同时续费"; + } + + }); + + if (ViewBag.errorTip == "先锋不同类型不能同时续费"){ + return View(model); + } + } + @@ -1004,6 +1035,13 @@ namespace Home.Controllers if (pro_type_temp_liebao ==3 && m.Id>1103&&m.Id<1109) { package_temp.Add(m); } + }else if(m.ProductId == 6){ + if (pro_type_temp_xianfeng ==1 && m.Id<61) { + package_temp.Add(m); + } + if (pro_type_temp_xianfeng ==2 && m.Id>1108&&m.Id<1115) { + package_temp.Add(m); + } } else { package_temp.Add(m); } @@ -1056,7 +1094,14 @@ namespace Home.Controllers if (pro_type_temp_liebao ==3 && m.Id>1103&&m.Id<1109) { package_temp.Add(m); } - } else { + }else if(m.ProductId == 6){ + if (pro_type_temp_xianfeng ==1 && m.Id<61) { + package_temp.Add(m); + } + if (pro_type_temp_xianfeng ==2 && m.Id>1108&&m.Id<1115) { + package_temp.Add(m); + } + } else { package_temp.Add(m); } }); diff --git a/Host/Views.Mobile/LineList/Index.cshtml b/Host/Views.Mobile/LineList/Index.cshtml index 28dd311..9d20f33 100644 --- a/Host/Views.Mobile/LineList/Index.cshtml +++ b/Host/Views.Mobile/LineList/Index.cshtml @@ -314,9 +314,9 @@ this.sstp = '4430'; break; case 6: - this.l2tp = '123'; + this.l2tp = '6666'; this.search_field = '先锋IP'; - this.sstp = '6665'; + this.sstp = '889'; break; case 10: this.l2tp = '88'; @@ -379,6 +379,11 @@ this.search_field = '强子静态IP'; this.sstp = '1500'; break; + case 26: + this.l2tp = '1234'; + this.search_field = '强子静态IP'; + this.sstp = '4430'; + break; } $.ajax({ type: 'GET', diff --git a/Host/Views.Mobile/Product/Index.cshtml b/Host/Views.Mobile/Product/Index.cshtml index 16f579b..36f12f9 100644 --- a/Host/Views.Mobile/Product/Index.cshtml +++ b/Host/Views.Mobile/Product/Index.cshtml @@ -175,6 +175,10 @@
| 123 | 1500 | |
| 先锋 | +6666 | +889 | +
| 极客 | 123456 | @@ -377,9 +382,9 @@ this.sstp = '4430'; break; case 6: - this.l2tp = '123'; + this.l2tp = '6666'; this.search_field = '先锋IP'; - this.sstp = '6665'; + this.sstp = '889'; break; case 10: this.l2tp = '88'; diff --git a/Host/Views/Product/Http.cshtml b/Host/Views/Product/Http.cshtml index d602ee8..eb2bfe5 100644 --- a/Host/Views/Product/Http.cshtml +++ b/Host/Views/Product/Http.cshtml @@ -29,7 +29,7 @@