Beispiel #1
0
        public JsonResult GetExcelBase64()
        {
            var path = $@"{AppDomain.CurrentDomain.BaseDirectory}Content\print.xls";
            //这里可以根据业务生成excel模板
            var excelBase64 = ExcelHelper.GetBase64ByPath(path);

            return(Json(JResult.Success("成功", "0", excelBase64)));
        }
Beispiel #2
0
 public JsonResult Test(string id, string name, AesKV kv)
 {
     return(Json(JResult.Success(new { Id = id + "+test", Name = name, Kv = kv })));
 }