admin 1 år sedan
förälder
incheckning
c3247b34de
1 ändrade filer med 1 tillägg och 4 borttagningar
  1. 1 4
      src/Hotline/CallCenter/Tels/TelDomainService.cs

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

@@ -134,6 +134,7 @@ public class TelDomainService : ITelDomainService, IScopeDependency
 
         if (_options.Value.CallCenterType!= "WeiErXin")
         {
+            telRest.StartTime = DateTime.Now;
             #region 处理设备
             var tel = _telCacheManager.GetTel(telRest.TelNo);
             foreach (var group in tel.Groups)
@@ -142,10 +143,6 @@ public class TelDomainService : ITelDomainService, IScopeDependency
             }
             #endregion
         }
-        else
-        {
-            telRest.StartTime = DateTime.Now;
-        }
 
         //通知前端休息通过
         await _realtimeService.RestApplyPassAsync(telRest.UserId, cancellationToken);