HomeController.cs 802 B

12345678910111213141516171819202122232425
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. using Microsoft.AspNetCore.Mvc;
  6. using Winsoft.GOV.XF.WebApi.WXCore.Filters;
  7. using Senparc.Weixin.MP.CoreMvcExtension;
  8. // For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
  9. namespace Winsoft.GOV.XF.WebApi.WXCore.Controllers
  10. {
  11. public class HomeController : Controller
  12. {
  13. // GET: /<controller>/
  14. [WeixinInternalRequest("访问被拒绝,请通过微信客户端访问!", "nofilter")]
  15. [WXOAuth(appId: null, oauthCallbackUrl: "/api/Auth")]
  16. public IActionResult Index()
  17. {
  18. return Redirect("/dist/web12345/index.html");
  19. //return View();
  20. }
  21. }
  22. }