为什么都没了
This commit is contained in:
37
framework/Api/Ewide.Web.Entry/Controllers/HomeController.cs
Normal file
37
framework/Api/Ewide.Web.Entry/Controllers/HomeController.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
//using Ewide.Application;
|
||||
using Furion;
|
||||
using Furion.DataEncryption;
|
||||
using Furion.TaskScheduler;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Linq;
|
||||
|
||||
namespace Ewide.Web.Entry.Controllers
|
||||
{
|
||||
[AllowAnonymous]
|
||||
public class HomeController : Controller
|
||||
{
|
||||
public HomeController()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public IActionResult Index()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
public IActionResult Index2()
|
||||
{
|
||||
//SpareTime.Do
|
||||
var workers = SpareTime.GetWorkers().ToList();
|
||||
SpareTime.DoOnce(3000, (timer, count) =>
|
||||
{
|
||||
// 这里发送短信,发送邮件或记录访问记录
|
||||
Console.WriteLine("现在时间:" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
|
||||
});
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user