public IActionResult Barcode([FromQuery] string code) { var file = UtilHelper.CreateCodeTxm(code); return(File(file, "image/jpeg")); }
/// <summary> /// 获取支付条形码 /// </summary> /// <param name="code"></param> /// <returns></returns> public IActionResult GetPayTxm([FromQuery] string code) { var img = UtilHelper.CreateCodeTxm(code); return(File(img, "image/jpeg")); }