xf 2 tahun lalu
induk
melakukan
bf365cf629

+ 1 - 1
src/Hotline.Application/Handlers/CallCenter/Transient/TransientOuterNotificationHandler.cs

@@ -34,7 +34,7 @@ namespace Hotline.Application.Handlers.CallCenter.Transient
                     ToNo = notification.Outer.To,
                     Trunk = notification.Outer.Trunk,
                     UserId = workModel.UserId,
-                    UserName = workModel.Name,
+                    UserName = workModel.UserName,
                     PhoneIsp = isp
                 };
                 callModel.Modified();

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

@@ -50,7 +50,7 @@ public class TelDomainService : ITelDomainService, IScopeDependency
         if (!isResting)
         {
             await _deviceManager.TelRestAsync(currentWork.TelNo, cancellationToken);
-            await _telRestRepository.AddAsync(new TelRest(currentWork.TelId, currentWork.TelNo, currentWork.UserId, currentWork.Name),
+            await _telRestRepository.AddAsync(new TelRest(currentWork.TelId, currentWork.TelNo, currentWork.UserId, currentWork.UserName),
                 cancellationToken);
         }
     }

+ 2 - 2
src/Hotline/Users/Work.cs

@@ -32,7 +32,7 @@ public class Work : CreationModificationEntity
     /// <summary>
     /// 姓名(冗余)
     /// </summary>
-    public string Name { get; init; }
+    public string UserName { get; init; }
 
     /// <summary>
     /// 工作时长(单位:秒)
@@ -55,7 +55,7 @@ public class Work : CreationModificationEntity
     {
         StartTime = DateTime.Now;
         UserId = userId;
-        Name = name;
+        UserName = name;
         TelId = telId;
         TelNo = telNo;
     }