var response = new FileContentResult(buffs, "application/octet-stream");
this.Context.Response.Headers.ContentLength = buffs.Length;
this.Context.Response.Headers.Add("Accept-Ranges", "bytes");
this.Context.Response.Headers.Add(HeaderNames.ContentDisposition, $"attachment;filename=1.xlsx");
兄弟,描述的不全,看不出来啥问题
感谢回复,已经解决了~