|
|
@@ -314,9 +314,9 @@ namespace CallCenterApi.Interface.Controllers
|
|
314
|
314
|
//删除/禁用/启用 用户
|
|
315
|
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
|
320
|
if (ids == null || ids.Length <= 0)
|
|
321
|
321
|
return Error("请选择用户");
|
|
322
|
322
|
var idStr = string.Join(",", ids);
|
|
|
@@ -329,18 +329,18 @@ namespace CallCenterApi.Interface.Controllers
|
|
329
|
329
|
if (sys.IsValidSeatPermission())
|
|
330
|
330
|
{
|
|
331
|
331
|
if (sysUserAccountBll.DeleteList(idStr, state))
|
|
332
|
|
- res = Success("设置成功");
|
|
|
332
|
+ return Success("设置成功");
|
|
333
|
333
|
else
|
|
334
|
|
- res = Error("设置失败");
|
|
|
334
|
+ return Error("设置失败");
|
|
335
|
335
|
}
|
|
336
|
|
- res = Error("话务人员数量已超!");
|
|
|
336
|
+ return Error("话务人员数量已超!");
|
|
337
|
337
|
}
|
|
338
|
338
|
if (sysUserAccountBll.DeleteList(idStr, state))
|
|
339
|
|
- res = Success("设置成功");
|
|
|
339
|
+ return Success("设置成功");
|
|
340
|
340
|
else
|
|
341
|
|
- res = Error("设置失败");
|
|
342
|
|
- }
|
|
343
|
|
- return res;
|
|
|
341
|
+ return Error("设置失败");
|
|
|
342
|
+ //}
|
|
|
343
|
+ //return res;
|
|
344
|
344
|
}
|
|
345
|
345
|
|
|
346
|
346
|
//[Authority]
|