|
|
@@ -389,8 +389,9 @@ namespace CallCenterApi.Interface.Controllers.tel
|
|
389
|
389
|
//添加/修改IVR号码归属地坐席关联
|
|
390
|
390
|
public ActionResult AddMobileUsers(int tellocid, int userid, int type)
|
|
391
|
391
|
{
|
|
|
392
|
+
|
|
392
|
393
|
ActionResult res = NoToken("未知错误,请重新登录");
|
|
393
|
|
- if (Request.IsAuthenticated)
|
|
|
394
|
+ if(Request.IsAuthenticated)
|
|
394
|
395
|
{
|
|
395
|
396
|
int userId = CurrentUser.UserData.F_UserId;
|
|
396
|
397
|
Model.T_Sys_UserAccount ua = new BLL.T_Sys_UserAccount().GetModel(userId);
|
|
|
@@ -442,15 +443,7 @@ namespace CallCenterApi.Interface.Controllers.tel
|
|
442
|
443
|
//}
|
|
443
|
444
|
|
|
444
|
445
|
|
|
445
|
|
- dModel = new Model.telloc_users();
|
|
446
|
|
- if (!string.IsNullOrWhiteSpace(tellocid.ToString()))
|
|
447
|
|
- {
|
|
448
|
|
- dModel.tellocid = tellocid;
|
|
449
|
|
- }
|
|
450
|
|
- if (!string.IsNullOrWhiteSpace(userid.ToString()))
|
|
451
|
|
- {
|
|
452
|
|
- dModel.userid = userid;
|
|
453
|
|
- }
|
|
|
446
|
+
|
|
454
|
447
|
dModel = dBLL.GetModel(userid, tellocid);
|
|
455
|
448
|
if (dModel != null)
|
|
456
|
449
|
{
|
|
|
@@ -468,6 +461,15 @@ namespace CallCenterApi.Interface.Controllers.tel
|
|
468
|
461
|
}
|
|
469
|
462
|
else
|
|
470
|
463
|
{
|
|
|
464
|
+ dModel = new Model.telloc_users();
|
|
|
465
|
+ if (!string.IsNullOrWhiteSpace(tellocid.ToString()))
|
|
|
466
|
+ {
|
|
|
467
|
+ dModel.tellocid = tellocid;
|
|
|
468
|
+ }
|
|
|
469
|
+ if (!string.IsNullOrWhiteSpace(userid.ToString()))
|
|
|
470
|
+ {
|
|
|
471
|
+ dModel.userid = userid;
|
|
|
472
|
+ }
|
|
471
|
473
|
dModel.isdelete = 0;
|
|
472
|
474
|
int n = new BLL.telloc_users().Add(dModel);
|
|
473
|
475
|
if (n > 0)
|