浏览代码

增加验证

zhoufan 4 年之前
父节点
当前提交
8c537fc43b

+ 1 - 0
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/Question/QuestionnaireController.cs

@@ -14,6 +14,7 @@ using System.Web.Mvc;
14 14
 
15 15
 namespace CallCenterApi.Interface.Controllers.Question
16 16
 {
17
+    [Authority]
17 18
     public class QuestionnaireController : BaseController
18 19
     {
19 20
         private readonly BLL.T_Ask_QuestionCategory qCategoryBLL = new BLL.T_Ask_QuestionCategory();

+ 10 - 10
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/UserAccountController.cs

@@ -13,7 +13,7 @@ using System.Web.Mvc;
13 13
 
14 14
 namespace CallCenterApi.Interface.Controllers
15 15
 {
16
-
16
+    [Authority]
17 17
     public class UserAccountController : BaseController
18 18
     {
19 19
         private BLL.T_Sys_UserAccount sysUserAccountBll = new BLL.T_Sys_UserAccount();
@@ -21,7 +21,7 @@ namespace CallCenterApi.Interface.Controllers
21 21
         private BLL.T_Sys_DictionaryValue dicValueBLL = new BLL.T_Sys_DictionaryValue();
22 22
 
23 23
         //用户列表
24
-        [Authority]
24
+        //[Authority]
25 25
         public ActionResult GetList(int isdc=0)
26 26
         {
27 27
             int userId = Utils.StrToInt(User.UserData["F_UserID"], 0);
@@ -177,7 +177,7 @@ namespace CallCenterApi.Interface.Controllers
177 177
 
178 178
 
179 179
         //获取用户信息
180
-        [Authority]
180
+        //[Authority]
181 181
         public ActionResult GetUser(int userId = 0, string userCode = "")
182 182
         {
183 183
             string sql = "";
@@ -234,7 +234,7 @@ namespace CallCenterApi.Interface.Controllers
234 234
             });
235 235
 
236 236
         }
237
-        [Authority]
237
+        //[Authority]
238 238
         //添加用户信息
239 239
         public ActionResult AddUsers(UserAccountInput input)
240 240
         {
@@ -298,7 +298,7 @@ namespace CallCenterApi.Interface.Controllers
298 298
             else
299 299
                 return Error("新增失败!");
300 300
         }
301
-        [Authority]
301
+        //[Authority]
302 302
         //修改用户信息
303 303
         public ActionResult EditUsers(UserAccountInput input)
304 304
         {
@@ -358,7 +358,7 @@ namespace CallCenterApi.Interface.Controllers
358 358
             else
359 359
                 return Error("编辑失败!");
360 360
         }
361
-        [Authority]
361
+        //[Authority]
362 362
         //删除/禁用/启用 用户
363 363
         public ActionResult DelUsers(string[] ids, int state = 0)
364 364
         {
@@ -389,7 +389,7 @@ namespace CallCenterApi.Interface.Controllers
389 389
                 return Error("设置失败");
390 390
         }
391 391
 
392
-        [Authority]
392
+        //[Authority]
393 393
         //删除用户
394 394
         public ActionResult WLDelUsers(string[] ids)
395 395
         {
@@ -439,7 +439,7 @@ namespace CallCenterApi.Interface.Controllers
439 439
 
440 440
         }
441 441
 
442
-        [Authority]
442
+        //[Authority]
443 443
         //获取当前用户信息
444 444
         public ActionResult GetNowUser()
445 445
         {
@@ -455,7 +455,7 @@ namespace CallCenterApi.Interface.Controllers
455 455
             return Success("获取成功", obj);
456 456
 
457 457
         }
458
-        [Authority]
458
+        //[Authority]
459 459
         /// <summary>
460 460
         /// 重置密码
461 461
         /// </summary>
@@ -575,7 +575,7 @@ namespace CallCenterApi.Interface.Controllers
575 575
         /// App手机端 用户列表
576 576
         /// </summary>
577 577
         /// <returns></returns>
578
-        [Authority]
578
+        //[Authority]
579 579
         public ActionResult GetAppUserList()
580 580
         {
581 581
             DataTable dt = new DataTable();

+ 17 - 16
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/callout/CallPlanController.cs

@@ -15,6 +15,7 @@ using System.Web.Mvc;
15 15
 
16 16
 namespace CallCenterApi.Interface.Controllers.callout
17 17
 {
18
+    [Authority]
18 19
     public class CallPlanController : BaseController
19 20
     {
20 21
         private readonly BLL.T_CTI_Task taskBLL = new BLL.T_CTI_Task();
@@ -32,7 +33,7 @@ namespace CallCenterApi.Interface.Controllers.callout
32 33
         /// </summary>
33 34
         /// <param name="filter"></param>
34 35
         /// <returns></returns>
35
-        [Authority]
36
+        //[Authority]
36 37
         public ActionResult GetList(FilterCallPlan filter)
37 38
         {
38 39
             var sql = " and State>=0  ";
@@ -82,7 +83,7 @@ namespace CallCenterApi.Interface.Controllers.callout
82 83
         /// </summary>
83 84
         /// <param name="id"></param>
84 85
         /// <returns></returns>
85
-        [Authority]
86
+        //[Authority]
86 87
         public ActionResult GetModel(int id)
87 88
         {
88 89
             //if (!Request.IsAuthenticated)
@@ -121,7 +122,7 @@ namespace CallCenterApi.Interface.Controllers.callout
121 122
         /// </summary>
122 123
         /// <param name="input"></param>
123 124
         /// <returns></returns>
124
-        [Authority]
125
+        //[Authority]
125 126
         public ActionResult CreateOrUpdate(CallPlanInput input)
126 127
         {
127 128
           //  if (!Request.IsAuthenticated)
@@ -316,7 +317,7 @@ namespace CallCenterApi.Interface.Controllers.callout
316 317
         /// <param name="id"></param>
317 318
         /// <param name="state"></param>
318 319
         /// <returns></returns>
319
-        [Authority]
320
+        //[Authority]
320 321
         public ActionResult Delete(int id)
321 322
         {
322 323
             //if (!Request.IsAuthenticated)
@@ -334,7 +335,7 @@ namespace CallCenterApi.Interface.Controllers.callout
334 335
         /// <param name="pageSize"></param>
335 336
         /// <param name="pageIndex"></param>
336 337
         /// <returns></returns>
337
-        [Authority]
338
+        //[Authority]
338 339
         public ActionResult GetPhoneList(FilterCallPhone filter)
339 340
         {
340 341
             //if (!Request.IsAuthenticated)
@@ -428,7 +429,7 @@ namespace CallCenterApi.Interface.Controllers.callout
428 429
         /// </summary>
429 430
         /// <param name="filter"></param>
430 431
         /// <returns></returns>
431
-        [Authority]
432
+        //[Authority]
432 433
         public ActionResult GetCategoryList(FilterVoiceCategory filter)
433 434
         {
434 435
             var sql = " ";
@@ -470,7 +471,7 @@ namespace CallCenterApi.Interface.Controllers.callout
470 471
         /// 获取所有类别(包含顶级分类)
471 472
         /// </summary>
472 473
         /// <returns></returns>
473
-        [Authority]
474
+        //[Authority]
474 475
         public ActionResult GetCategoryAllList()
475 476
         {
476 477
             List<Model.T_CTI_TaskCategory> modelList = taskCategoryBLL.DataTableToList(taskCategoryBLL.GetList("").Tables[0]);
@@ -489,7 +490,7 @@ namespace CallCenterApi.Interface.Controllers.callout
489 490
         /// 获取所有类别(不包含顶级分类)
490 491
         /// </summary>
491 492
         /// <returns></returns>
492
-        [Authority]
493
+        //[Authority]
493 494
         public ActionResult GetCategoryALLList2()
494 495
         {
495 496
             List<Model.T_CTI_TaskCategory> modelList = taskCategoryBLL.DataTableToList(taskCategoryBLL.GetList("").Tables[0]);
@@ -504,7 +505,7 @@ namespace CallCenterApi.Interface.Controllers.callout
504 505
         /// </summary>
505 506
         /// <param name="id"></param>
506 507
         /// <returns></returns>
507
-        [Authority]
508
+        //[Authority]
508 509
         public ActionResult GetCategory(int id)
509 510
         {
510 511
             //if (!Request.IsAuthenticated)
@@ -525,7 +526,7 @@ namespace CallCenterApi.Interface.Controllers.callout
525 526
         /// </summary>
526 527
         /// <param name="input"></param>
527 528
         /// <returns></returns>
528
-        [Authority]
529
+        //[Authority]
529 530
         public ActionResult CreateOrUpdateCategory(VoiceCategoryInput input)
530 531
         {
531 532
             //if (!Request.IsAuthenticated)
@@ -564,7 +565,7 @@ namespace CallCenterApi.Interface.Controllers.callout
564 565
         /// <param name="id"></param>
565 566
         /// <param name="state"></param>
566 567
         /// <returns></returns>
567
-        [Authority]
568
+        //[Authority]
568 569
         public ActionResult DeleteCategory(int id)
569 570
         {
570 571
             //if (!Request.IsAuthenticated)
@@ -581,7 +582,7 @@ namespace CallCenterApi.Interface.Controllers.callout
581 582
         /// </summary>
582 583
         /// <param name="filter"></param>
583 584
         /// <returns></returns>
584
-        [Authority]
585
+        //[Authority]
585 586
         public ActionResult GetVoiceTempList(FilterVoiceTemp filter)
586 587
         {
587 588
             var sql = " ";
@@ -621,7 +622,7 @@ namespace CallCenterApi.Interface.Controllers.callout
621 622
             };
622 623
             return Content(obj.ToJson());
623 624
         }
624
-        [Authority]
625
+        //[Authority]
625 626
         public ActionResult GetVoiceTempTitleList(FilterVoiceTemp filter)
626 627
         {
627 628
             var list = taskVoiceTempBLL.DataTableToList2(taskVoiceTempBLL.GetList("").Tables[0]);
@@ -636,7 +637,7 @@ namespace CallCenterApi.Interface.Controllers.callout
636 637
         /// </summary>
637 638
         /// <param name="id"></param>
638 639
         /// <returns></returns>
639
-        [Authority]
640
+        //[Authority]
640 641
         public ActionResult GetVoiceTemp(int id)
641 642
         {
642 643
             //if (!Request.IsAuthenticated)
@@ -659,7 +660,7 @@ namespace CallCenterApi.Interface.Controllers.callout
659 660
         /// </summary>
660 661
         /// <param name="input"></param>
661 662
         /// <returns></returns>
662
-        [Authority]
663
+        //[Authority]
663 664
         public ActionResult CreateOrUpdateVoiceTemp(VoiceTempleteInput input)
664 665
         {
665 666
             //if (!Request.IsAuthenticated)
@@ -698,7 +699,7 @@ namespace CallCenterApi.Interface.Controllers.callout
698 699
         /// <param name="id"></param>
699 700
         /// <param name="state"></param>
700 701
         /// <returns></returns>
701
-        [Authority]
702
+        //[Authority]
702 703
         public ActionResult DeleteVoiceTemp(int[] ids)
703 704
         {
704 705
             //if (!Request.IsAuthenticated)