admin 1 year ago
parent
commit
311610458e
1 changed files with 5 additions and 1 deletions
  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);