Skip to content

Commit

Permalink
fix: ClientCaptchaInfoModel is not MemoryPackable
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Apr 8, 2024
1 parent 7fed358 commit a9c3d09
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/GZCTF/Models/Request/Info/ClientCaptchaInfoModel.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
using GZCTF.Models.Internal;
using MemoryPack;

namespace GZCTF.Models.Request.Info;

/// <summary>
/// 验证码配置
/// </summary>
public class ClientCaptchaInfoModel
[MemoryPackable]
public partial class ClientCaptchaInfoModel
{
[MemoryPackConstructor]
public ClientCaptchaInfoModel() { }

public ClientCaptchaInfoModel(CaptchaConfig? config)
Expand All @@ -27,4 +30,4 @@ public ClientCaptchaInfoModel(CaptchaConfig? config)
/// 客户端密钥
/// </summary>
public string SiteKey { get; set; } = string.Empty;
}
}

0 comments on commit a9c3d09

Please sign in to comment.