public ActionResult GetList(string user) { var result = new StandardJsonResult <int []>(); result.Try(() => { ScanCountModel list = service.GetScanCount(user); int[] ret = new int[4]; if (list != null) { ret[0] = list.ProjectNum; ret[1] = list.CheckProjectNum; ret[2] = list.SceneNum; ret[3] = list.CheckSceneNum; result.Value = ret; } else { result.Value = new int[4]; } }); if (!result.Success) { result.Value = new int[4]; result.Message = "获取数据失败!"; } return(result); }