fix(Analyse): 修复Null引用错误

This commit is contained in:
Argo Zhang 2019-05-29 15:46:04 +08:00
parent c462cc0a9f
commit 8d38819976
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ namespace Bootstrap.Admin.Controllers.Api
/// </summary>
/// <returns></returns>
[HttpGet()]
public ActionResult<AnalyseData> Get([FromQuery]string logType)
public ActionResult<AnalyseData> Get([FromQuery]string logType = "")
{
var ret = new AnalyseData();
if (logType.Equals("LoginUsers", StringComparison.OrdinalIgnoreCase))