Пример #1
0
        public IActionResult Barcode([FromQuery] string code)
        {
            var file = UtilHelper.CreateCodeTxm(code);

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

            return(File(img, "image/jpeg"));
        }