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);