Parcourir la Source

坐席授权bug和操作手册

lihai il y a 8 ans
Parent
commit
84d35c36ab

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/SysConfigController.cs

248
             string saltValue = model.F_SaltValue;
248
             string saltValue = model.F_SaltValue;
249
             string passHashNew = SaltAndHashHelper.GetHashSha256(maxSeat + securityKey, saltValue); //将用户数据的密码采用已知的盐值进行加密
249
             string passHashNew = SaltAndHashHelper.GetHashSha256(maxSeat + securityKey, saltValue); //将用户数据的密码采用已知的盐值进行加密
250
             //校验密码hash值是否一致
250
             //校验密码hash值是否一致
251
-            if (maxSeat >= currentSeat)
251
+            if (maxSeat > currentSeat)
252
             {
252
             {
253
                 return passHashNew.Equals(passHash);
253
                 return passHashNew.Equals(passHash);
254
             }
254
             }

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

314
         //删除/禁用/启用 用户
314
         //删除/禁用/启用 用户
315
         public ActionResult DelUsers(string[] ids, int state = 0)
315
         public ActionResult DelUsers(string[] ids, int state = 0)
316
         {
316
         {
317
-            ActionResult res = NoToken("未知错误,请重新登录");
318
-            if (Request.IsAuthenticated)
319
-            {
317
+            //ActionResult res = NoToken("未知错误,请重新登录");
318
+            //if (Request.IsAuthenticated)
319
+            //{
320
                 if (ids == null || ids.Length <= 0)
320
                 if (ids == null || ids.Length <= 0)
321
                     return Error("请选择用户");
321
                     return Error("请选择用户");
322
                 var idStr = string.Join(",", ids);
322
                 var idStr = string.Join(",", ids);
329
                     if (sys.IsValidSeatPermission())
329
                     if (sys.IsValidSeatPermission())
330
                     {
330
                     {
331
                         if (sysUserAccountBll.DeleteList(idStr, state))
331
                         if (sysUserAccountBll.DeleteList(idStr, state))
332
-                            res = Success("设置成功");
332
+                            return Success("设置成功");
333
                         else
333
                         else
334
-                            res = Error("设置失败");
334
+                            return Error("设置失败");
335
                     }
335
                     }
336
-                    res = Error("话务人员数量已超!");
336
+                    return Error("话务人员数量已超!");
337
                 }
337
                 }
338
                 if (sysUserAccountBll.DeleteList(idStr, state))
338
                 if (sysUserAccountBll.DeleteList(idStr, state))
339
-                    res = Success("设置成功");
339
+                    return Success("设置成功");
340
                 else
340
                 else
341
-                    res = Error("设置失败");
342
-            }
343
-            return res;
341
+                    return Error("设置失败");
342
+            //}
343
+            //return res;
344
         }
344
         }
345
 
345
 
346
         //[Authority]
346
         //[Authority]

BIN
文档/坐席授权 - 操作手册.doc