2020-10-22 14:59:36 +08:00
|
|
|
|
// ***********************************************************************
|
|
|
|
|
// Assembly : OpenAuth.Mvc
|
|
|
|
|
// Author : 李玉宝
|
|
|
|
|
// Created : 07-24-2018
|
|
|
|
|
//
|
|
|
|
|
// Last Modified By : 李玉宝
|
|
|
|
|
// Last Modified On : 07-24-2018
|
|
|
|
|
// ***********************************************************************
|
|
|
|
|
// <copyright file="ErrorController.cs" company="OpenAuth.Mvc">
|
2021-07-22 19:33:55 +08:00
|
|
|
|
// Copyright (c) http://www.openauth.net.cn. All rights reserved.
|
2020-10-22 14:59:36 +08:00
|
|
|
|
// </copyright>
|
|
|
|
|
// <summary>
|
|
|
|
|
// 异常处理页面
|
|
|
|
|
//</summary>
|
|
|
|
|
// ***********************************************************************
|
|
|
|
|
|
2016-04-25 11:53:21 +08:00
|
|
|
|
using Infrastructure;
|
2020-10-22 14:59:36 +08:00
|
|
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
2015-12-02 10:06:30 +08:00
|
|
|
|
|
|
|
|
|
namespace OpenAuth.Mvc.Controllers
|
|
|
|
|
{
|
|
|
|
|
public class ErrorController : Controller
|
|
|
|
|
{
|
2020-10-22 14:59:36 +08:00
|
|
|
|
[AllowAnonymous]
|
|
|
|
|
public string Demo()
|
2016-04-25 11:53:21 +08:00
|
|
|
|
{
|
2020-10-22 14:59:36 +08:00
|
|
|
|
return JsonHelper.Instance.Serialize(new Response
|
2016-04-25 11:53:21 +08:00
|
|
|
|
{
|
2017-11-28 23:54:49 +08:00
|
|
|
|
Code = 500,
|
2020-10-22 14:59:36 +08:00
|
|
|
|
Message = "演示版本,不要乱动"
|
|
|
|
|
});
|
2016-04-25 11:53:21 +08:00
|
|
|
|
}
|
|
|
|
|
|
2020-10-22 14:59:36 +08:00
|
|
|
|
[AllowAnonymous]
|
|
|
|
|
public ActionResult Auth()
|
2016-04-25 11:53:21 +08:00
|
|
|
|
{
|
2020-10-22 14:59:36 +08:00
|
|
|
|
return View();
|
2015-12-02 10:06:30 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|