DuGuYang 3 лет назад
Родитель
Сommit
d24bb4544d
1 измененных файлов с 14 добавлено и 6 удалено
  1. 14 6
      Areas/Admin/Controllers/MainServer/UsersController.cs

+ 14 - 6
Areas/Admin/Controllers/MainServer/UsersController.cs

@@ -1557,9 +1557,13 @@ namespace MySystem.Areas.Admin.Controllers
                     con += " and Id >=" + consId;
                     cons += " and Id >=" + conssId;
                 }
-                string[] datas = Info.Split(",");
-                con += " and Id >=" + Convert.ToInt32(datas[0]);
-                cons += " and Id >=" + Convert.ToInt32(datas[1]);
+                else
+                {
+                    string[] datas = Info.Split(",");
+                    con += " and Id >=" + Convert.ToInt32(datas[0]);
+                    cons += " and Id >=" + Convert.ToInt32(datas[1]);
+
+                }
             }
             if (!string.IsNullOrEmpty(BrandSelect.ToString()) && BrandId > 0)
             {
@@ -1875,9 +1879,13 @@ namespace MySystem.Areas.Admin.Controllers
                     condition += " and Id >=" + conId;
                     con += " and Id >=" + consId;
                 }
-                string[] datas = Info.Split(",");
-                condition += " and Id >=" + Convert.ToInt32(datas[0]);
-                con += " and Id >=" + Convert.ToInt32(datas[1]);
+                else
+                {
+                    string[] datas = Info.Split(",");
+                    condition += " and Id >=" + Convert.ToInt32(datas[0]);
+                    con += " and Id >=" + Convert.ToInt32(datas[1]);
+
+                }
             }
 
             //扶持期