|
|
@@ -91,7 +91,8 @@ func (slf AudioCtl) Upload(c *gin.Context) {
|
|
|
}
|
|
|
//解析 交路号:123_公里标:321
|
|
|
fileds := string(bts)
|
|
|
- arr = strings.Split(fileds, "_")
|
|
|
+ //按照换行或者回车分割
|
|
|
+ arr := strings.Split(fileds, "\n")
|
|
|
if len(arr) != 2 {
|
|
|
util.ResponseFormat(c, code.RequestParamError, "文件内容格式不对")
|
|
|
return
|