public async Task <IActionResult> Download(string siteName, string path) { try { var result = await _driveService.GetDriveItemByPath(path, siteName); if (result != null) { return(Redirect(result.DownloadUrl)); } return(NotFound(new ErrorResponse() { message = $"所求的{path}不存在" })); } catch (Exception e) { return(StatusCode(500, e.Message)); } }