فهرست منبع

调整显示问题

DuGuYang 2 سال پیش
والد
کامیت
de0b7eb361
1فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
  1. 6 2
      Areas/Admin/Controllers/SpServer/ActivateRecordController.cs

+ 6 - 2
Areas/Admin/Controllers/SpServer/ActivateRecordController.cs

@@ -106,9 +106,13 @@ namespace MySystem.Areas.Admin.Controllers
                 {
                     dic["SeoTitle"] = SeoTitle;
                 }
-                if (SeoTitle.Length > 3)
+                if (SeoTitle.Length == 4)
                 {
-                    dic["SeoTitle"] = SeoTitle.Substring(3);
+                    dic["SeoTitle"] = SeoTitle.Substring(0,2);
+                }
+                if (SeoTitle.Length == 5)
+                {
+                    dic["SeoTitle"] = SeoTitle.Substring(0,3);
                 }
                 // //产品类型
                 // string ProductType = dic["ProductType"].ToString();