AppController.cs 712 B

123456789101112131415161718192021222324252627
  1. using Bowin.Common.Cache;
  2. using Bowin.Common.DES;
  3. using Bowin.Common.ServiceToken;
  4. using Bowin.Common.Utility;
  5. using Bowin.Common.WebModels;
  6. using Microsoft.AspNetCore.Authorization;
  7. using Microsoft.AspNetCore.Mvc;
  8. using Newtonsoft.Json;
  9. using OrderSystem.Entity.ViewModel;
  10. using OrderSystem.Services.SystemSetting;
  11. using System.Net.Http;
  12. namespace OrderSystem.Web.Controllers
  13. {
  14. [Route("")]
  15. [ApiController]
  16. public class AppController : ControllerBase
  17. {
  18. [HttpGet("/h5/{v}")]
  19. public RedirectResult h5()
  20. {
  21. return Redirect(Configuration.Current.AppSettings.H5BasePath + "h5/" + Configuration.Current.AppSettings.H5Version + "/index.html");
  22. }
  23. }
  24. }