mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 16:03:25 +08:00
【升级】NuGet各个组件包升级到最新版本,Hangfire注册方法启用新写法。
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Hangfire" Version="1.7.33" />
|
||||
<PackageReference Include="Hangfire" Version="1.8.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="7.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@@ -41,34 +41,34 @@ namespace CoreCms.Net.Task
|
||||
//CancelOrderJob代表你要触发的类 Execute代表你要触发的方法
|
||||
|
||||
//自动取消订单任务
|
||||
RecurringJob.AddOrUpdate<AutoCancelOrderJob>(s => s.Execute(), "0 0/5 * * * ? ", TimeZoneInfo.Local); // 每5分钟取消一次订单
|
||||
RecurringJob.AddOrUpdate<AutoCancelOrderJob>("AutoCancelOrderJob", s => s.Execute(), "0 0/5 * * * ? ", new RecurringJobOptions { TimeZone = TimeZoneInfo.Local }); // 每5分钟取消一次订单
|
||||
|
||||
//自动完成订单任务
|
||||
RecurringJob.AddOrUpdate<CompleteOrderJob>(s => s.Execute(), "0 0 0/1 * * ? ", TimeZoneInfo.Local); // 每小时自动完成订单
|
||||
RecurringJob.AddOrUpdate<CompleteOrderJob>("CompleteOrderJob", s => s.Execute(), "0 0 0/1 * * ? ", new RecurringJobOptions { TimeZone = TimeZoneInfo.Local }); // 每小时自动完成订单
|
||||
|
||||
//自动评价订单任务
|
||||
RecurringJob.AddOrUpdate<EvaluateOrderJob>(s => s.Execute(), "0 0 0/1 * * ? ", TimeZoneInfo.Local); // 每小时自动完成订单
|
||||
RecurringJob.AddOrUpdate<EvaluateOrderJob>("EvaluateOrderJob", s => s.Execute(), "0 0 0/1 * * ? ", new RecurringJobOptions { TimeZone = TimeZoneInfo.Local }); // 每小时自动完成订单
|
||||
|
||||
//自动签收订单任务
|
||||
RecurringJob.AddOrUpdate<AutoSignOrderJob>(s => s.Execute(), "0 0 0/1 * * ? ", TimeZoneInfo.Local); // 每小时自动完成订单
|
||||
RecurringJob.AddOrUpdate<AutoSignOrderJob>("AutoSignOrderJob", s => s.Execute(), "0 0 0/1 * * ? ", new RecurringJobOptions { TimeZone = TimeZoneInfo.Local }); // 每小时自动完成订单
|
||||
|
||||
//催付款订单
|
||||
RecurringJob.AddOrUpdate<RemindOrderPayJob>(s => s.Execute(), "0 0/5 * * * ? ", TimeZoneInfo.Local); // 每5分钟催付款订单
|
||||
RecurringJob.AddOrUpdate<RemindOrderPayJob>("RemindOrderPayJob", s => s.Execute(), "0 0/5 * * * ? ", new RecurringJobOptions { TimeZone = TimeZoneInfo.Local }); // 每5分钟催付款订单
|
||||
|
||||
//拼团自动取消到期团(每分钟执行一次)
|
||||
RecurringJob.AddOrUpdate<AutoCanclePinTuanJob>(s => s.Execute(), "0 0/2 * * * ? ", TimeZoneInfo.Local); // 每分钟取消一次订单
|
||||
RecurringJob.AddOrUpdate<AutoCanclePinTuanJob>("AutoCanclePinTuanJob", s => s.Execute(), "0 0/2 * * * ? ", new RecurringJobOptions { TimeZone = TimeZoneInfo.Local }); // 每分钟取消一次订单
|
||||
|
||||
//每天凌晨5点定期清理7天前操作日志
|
||||
RecurringJob.AddOrUpdate<RemoveOperationLogJob>(s => s.Execute(), "0 0 5 * * ? ", TimeZoneInfo.Local); // 每天5点固定时间清理一次
|
||||
RecurringJob.AddOrUpdate<RemoveOperationLogJob>("RemoveOperationLogJob", s => s.Execute(), "0 0 5 * * ? ", new RecurringJobOptions { TimeZone = TimeZoneInfo.Local }); // 每天5点固定时间清理一次
|
||||
|
||||
//定时刷新获取微信AccessToken
|
||||
RecurringJob.AddOrUpdate<RefreshWeChatAccessTokenJob>(s => s.Execute(), "0 0/4 * * * ? ", TimeZoneInfo.Local); // 每2分钟刷新获取微信AccessToken
|
||||
RecurringJob.AddOrUpdate<RefreshWeChatAccessTokenJob>("RefreshWeChatAccessTokenJob", s => s.Execute(), "0 0/4 * * * ? ", new RecurringJobOptions { TimeZone = TimeZoneInfo.Local }); // 每2分钟刷新获取微信AccessToken
|
||||
|
||||
//定时清理用户连续签到信息
|
||||
RecurringJob.AddOrUpdate<ClearUserContinuousCheckInJob>(s => s.Execute(), "0 0 0 */1 * ? ", TimeZoneInfo.Local); // 每天0点执行。
|
||||
RecurringJob.AddOrUpdate<ClearUserContinuousCheckInJob>("ClearUserContinuousCheckInJob", s => s.Execute(), "0 0 0 */1 * ? ", new RecurringJobOptions { TimeZone = TimeZoneInfo.Local }); // 每天0点执行。
|
||||
|
||||
//自动取消服务器订单任务
|
||||
RecurringJob.AddOrUpdate<AutoCancelServiceOrderJob>(s => s.Execute(), "0 0/5 * * * ? ", TimeZoneInfo.Local); // 每5分钟取消一次订单
|
||||
RecurringJob.AddOrUpdate<AutoCancelServiceOrderJob>("AutoCancelServiceOrderJob", s => s.Execute(), "0 0/5 * * * ? ", new RecurringJobOptions { TimeZone = TimeZoneInfo.Local }); // 每5分钟取消一次订单
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user