admin преди 1 година
родител
ревизия
311610458e
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. 5 1
      src/Hotline/CallCenter/Tels/TelDomainService.cs

+ 5 - 1
src/Hotline/CallCenter/Tels/TelDomainService.cs

@@ -129,7 +129,7 @@ public class TelDomainService : ITelDomainService, IScopeDependency
         
 
         telRest.ApplyStatus = ETelRestApplyStatus.Resting;
-        telRest.StartTime = DateTime.Now;
+        
         await _telRestRepository.UpdateAsync(telRest, cancellationToken);
 
         if (_options.Value.CallCenterType!= "WeiErXin")
@@ -142,6 +142,10 @@ public class TelDomainService : ITelDomainService, IScopeDependency
             }
             #endregion
         }
+        else
+        {
+            telRest.StartTime = DateTime.Now;
+        }
 
         //通知前端休息通过
         await _realtimeService.RestApplyPassAsync(telRest.UserId, cancellationToken);