Explorar el Código

坐席授权bug和操作手册

lihai %!s(int64=8) %!d(string=hace) años
padre
commit
b0cc69c193

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

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

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

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

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