|
|
@@ -463,7 +463,8 @@ namespace CallCenterApi.Interface.Controllers.tel
|
|
463
|
463
|
{
|
|
464
|
464
|
|
|
465
|
465
|
string strid = RequestString.GetFormString("callid");
|
|
466
|
|
- bool bl = new BLL.T_Call_CallRecords().UpdateCallInHookTelRecord(strid);
|
|
|
466
|
+ //bool bl = new BLL.T_Call_CallRecords().UpdateCallInHookTelRecord(strid);
|
|
|
467
|
+ bool bl = true;
|
|
467
|
468
|
if (bl)
|
|
468
|
469
|
{
|
|
469
|
470
|
res = Success("更新挂机状态成功");
|
|
|
@@ -487,27 +488,29 @@ namespace CallCenterApi.Interface.Controllers.tel
|
|
487
|
488
|
if (Request.IsAuthenticated)
|
|
488
|
489
|
{
|
|
489
|
490
|
|
|
490
|
|
- Model.T_Call_CallRecords model = new Model.T_Call_CallRecords();
|
|
491
|
|
- model.CallId = RequestString.GetFormString("callid");
|
|
492
|
|
- model.CallState = 1;
|
|
493
|
|
- model.DealType = 6;
|
|
494
|
|
- model.FilePath = RequestString.GetFormString("path");
|
|
495
|
|
- bool bl = new BLL.T_Call_CallRecords().UpdateCallInPathTelRecord(model);
|
|
496
|
|
- if (bl)
|
|
497
|
|
- {
|
|
498
|
|
- Model.T_Call_CallRecords vmodel = new BLL.T_Call_CallRecords().GetModelByCallId(model.CallId);
|
|
499
|
|
- string type = vmodel.OperateType.ToString();
|
|
500
|
|
- if (type == "7")
|
|
501
|
|
- {
|
|
502
|
|
- new BLL.T_Call_TaskTelNum().UpdateYJ(Convert.ToInt32(vmodel.OperateObject.ToString()), 1);
|
|
503
|
|
- }
|
|
|
491
|
+ //Model.T_Call_CallRecords model = new Model.T_Call_CallRecords();
|
|
|
492
|
+ //model.CallId = RequestString.GetFormString("callid");
|
|
|
493
|
+ //model.CallState = 1;
|
|
|
494
|
+ //model.DealType = 6;
|
|
|
495
|
+ //model.FilePath = RequestString.GetFormString("path");
|
|
|
496
|
+ //bool bl = new BLL.T_Call_CallRecords().UpdateCallInPathTelRecord(model);
|
|
|
497
|
+ //if (bl)
|
|
|
498
|
+ //{
|
|
|
499
|
+ // Model.T_Call_CallRecords vmodel = new BLL.T_Call_CallRecords().GetModelByCallId(model.CallId);
|
|
|
500
|
+ // string type = vmodel.OperateType.ToString();
|
|
|
501
|
+ // if (type == "7")
|
|
|
502
|
+ // {
|
|
|
503
|
+ // new BLL.T_Call_TaskTelNum().UpdateYJ(Convert.ToInt32(vmodel.OperateObject.ToString()), 1);
|
|
|
504
|
+ // }
|
|
|
505
|
+
|
|
|
506
|
+ // res = Success("更新挂机状态成功");
|
|
|
507
|
+ //}
|
|
|
508
|
+ //else
|
|
|
509
|
+ //{
|
|
|
510
|
+ // res = Success("更新挂机状态失败");
|
|
|
511
|
+ //}
|
|
504
|
512
|
|
|
505
|
|
- res = Success("更新挂机状态成功");
|
|
506
|
|
- }
|
|
507
|
|
- else
|
|
508
|
|
- {
|
|
509
|
|
- res = Success("更新挂机状态失败");
|
|
510
|
|
- }
|
|
|
513
|
+ res = Success("更新挂机状态成功");
|
|
511
|
514
|
|
|
512
|
515
|
}
|
|
513
|
516
|
return res;
|