DuGuYang 2 лет назад
Родитель
Сommit
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();