|
@@ -262,16 +262,16 @@ namespace Hotline.Api
|
|
|
|
|
|
switch (callCenterConfiguration.CallCenterType)
|
|
|
{
|
|
|
- //case "XingTang":
|
|
|
- // var getCallsJobKey = new JobKey(nameof(GetCallsJob));
|
|
|
- // d.AddJob<GetCallsJob>(getCallsJobKey);
|
|
|
- // d.AddTrigger(d => d
|
|
|
- // .WithIdentity("get-callsxt-trigger")
|
|
|
- // .ForJob(getCallsJobKey)
|
|
|
- // .StartNow()
|
|
|
- // .WithCronSchedule("0/5 * * * * ?")
|
|
|
- // );
|
|
|
- // break;
|
|
|
+ case "XingTang":
|
|
|
+ var getCallsJobKey = new JobKey(nameof(GetCallsJob));
|
|
|
+ d.AddJob<GetCallsJob>(getCallsJobKey);
|
|
|
+ d.AddTrigger(d => d
|
|
|
+ .WithIdentity("get-callsxt-trigger")
|
|
|
+ .ForJob(getCallsJobKey)
|
|
|
+ .StartNow()
|
|
|
+ .WithCronSchedule("0/5 * * * * ?")
|
|
|
+ );
|
|
|
+ break;
|
|
|
}
|
|
|
});
|
|
|
|