From 6ad7d3b807f6bb186926f27bb343cf222ef44a26 Mon Sep 17 00:00:00 2001 From: yinbangzhong <zhongbangyin@126.com> Date: 星期三, 19 六月 2024 19:22:13 +0800 Subject: [PATCH] download file by attach model --- controllers/audio.go | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/controllers/audio.go b/controllers/audio.go index 9ce7cba..9a6fb96 100644 --- a/controllers/audio.go +++ b/controllers/audio.go @@ -91,7 +91,8 @@ } //瑙f瀽 浜よ矾鍙�:123_鍏噷鏍�:321 fileds := string(bts) - arr = strings.Split(fileds, "_") + //鎸夌収鎹㈣鎴栬�呭洖杞﹀垎鍓� + arr := strings.Split(fileds, "\n") if len(arr) != 2 { util.ResponseFormat(c, code.RequestParamError, "鏂囦欢鍐呭鏍煎紡涓嶅") return -- Gitblit v1.8.0