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