初始化
This commit is contained in:
24
MyQianLiMa/Job/GetTokenJob.cs
Normal file
24
MyQianLiMa/Job/GetTokenJob.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using System.Web;
|
||||
using MyQianLiMa;
|
||||
using Quartz;
|
||||
|
||||
namespace MoNi_QianLiMa.Job
|
||||
{
|
||||
public class GetTokenJob : IJob
|
||||
{
|
||||
public async Task Execute(IJobExecutionContext context)
|
||||
{
|
||||
string token = await MyQianLiMa.Global.GetToken_G();
|
||||
|
||||
Global.GlobalData.AddOrUpdate(Global.QianLiMa_LoginToken,token,(k,v)=>
|
||||
{
|
||||
return token;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user