Index.cshtml.cs 643 B

1234567891011121314151617181920212223242526272829
  1. using JCSoft.WX.Framework.Api;
  2. using Microsoft.AspNetCore.Authorization;
  3. using Microsoft.Extensions.Caching.Memory;
  4. namespace SupplierWeb.Pages
  5. {
  6. public class IndexModel : LoginedPageModel
  7. {
  8. public IndexModel(IMemoryCache cache, IApiClient client) : base(cache, client)
  9. {
  10. }
  11. public override int Index => -1;
  12. public override int SubIndex => 1;
  13. public void OnGet()
  14. {
  15. if (!string.IsNullOrEmpty(AccessToken))
  16. {
  17. Message = $"appid is {AppId}, token is {AccessToken}";
  18. }
  19. }
  20. }
  21. }