mirror of
				https://github.com/nsnail/NetAdmin.git
				synced 2025-10-31 11:25:27 +08:00 
			
		
		
		
	fix: 🐛 请求日志客户端IP显示不正确 (#60)
This commit is contained in:
		| @@ -8,6 +8,11 @@ namespace NetAdmin.Domain.Dto.Sys.RequestLog; | ||||
| /// </summary> | ||||
| public sealed record QueryRequestLogRsp : Sys_RequestLog, IRegister | ||||
| { | ||||
|     /// <summary> | ||||
|     ///     创建者客户端IP | ||||
|     /// </summary> | ||||
|     public new string CreatedClientIp => base.CreatedClientIp?.ToIpV4(); | ||||
|  | ||||
|     /// <summary> | ||||
|     ///     操作系统 | ||||
|     /// </summary> | ||||
| @@ -22,10 +27,6 @@ public sealed record QueryRequestLogRsp : Sys_RequestLog, IRegister | ||||
|     /// </summary> | ||||
|     public string ApiSummary { get; init; } | ||||
|  | ||||
|     /// <inheritdoc cref="Sys_RequestLog.CreatedClientIp" /> | ||||
|     [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] | ||||
|     public override int? CreatedClientIp { get; init; } | ||||
|  | ||||
|     /// <inheritdoc cref="IFieldCreatedTime.CreatedTime" /> | ||||
|     [JsonIgnore(Condition = JsonIgnoreCondition.Never)] | ||||
|     public override DateTime CreatedTime { get; init; } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 GitHub
						GitHub