云库增加 AI识图,缓存,我的云库收藏增加安全标志
调用外部API 扣费
This commit is contained in:
1 parent
7c29e57623
commit
150e8644b7
49 files changed
+1069
-28
No files matched your search
@@ -1,7 +1,9 @@
|
||||
using Asp.Versioning;
|
||||
using Asp.Versioning.OpenApi;
|
||||
using Hangfire;
|
||||
using MAX.Framework.Conventions;
|
||||
using MAX.Framework.DependencyInjection;
|
||||
using MAX.Framework.Security;
|
||||
using Scalar.AspNetCore;
|
||||
|
||||
public partial class Program
|
||||
@@ -80,6 +82,10 @@ public partial class Program
|
||||
|
||||
app.UseAuthorization();
|
||||
app.UseStoreHangfire();
|
||||
// UTC 19:00 即北京时间次日 03:00;固定任务 ID 避免重启后重复注册。
|
||||
app.Services.GetRequiredService<IRecurringJobManager>().AddOrUpdate<TokenService>(
|
||||
"token-cleanup", service => service.CleanupExpiredTokens(), Cron.Daily(19),
|
||||
new RecurringJobOptions { TimeZone = TimeZoneInfo.Utc });
|
||||
|
||||
app.MapControllers();
|
||||
|
||||
|
||||
Reference in new issue
Block a user