Files
EmailBill/WebApi.Test/Basic/BaseTest.cs
SunCheng 0ffeb41605
Some checks failed
Docker Build & Deploy / Build Docker Image (push) Failing after 44s
Docker Build & Deploy / Deploy to Production (push) Has been skipped
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 3s
Docker Build & Deploy / WeChat Notification (push) Successful in 2s
重构存款预算
2026-01-20 19:11:05 +08:00

18 lines
367 B
C#

namespace WebApi.Test.Basic;
public class BaseTest
{
public BaseTest()
{
// 初始化雪花算法ID生成器
var options = new IdGeneratorOptions(1);
try
{
YitIdHelper.SetIdGenerator(options);
}
catch (Exception)
{
// 忽略重复设置可能引发的异常
}
}
}