Browse Source

去掉左右两边空格

xyxie 6 days ago
parent
commit
2ed2f6f141
1 changed files with 1 additions and 0 deletions
  1. 1 0
      controllers/material/material.go

+ 1 - 0
controllers/material/material.go

@@ -1438,6 +1438,7 @@ func (this *MaterialController) Rename() {
 		br.Msg = "缺少素材库编号"
 		br.Msg = "缺少素材库编号"
 		return
 		return
 	}
 	}
+	req.MaterialName = strings.Trim(req.MaterialName, " ")
 	if req.MaterialName == "" {
 	if req.MaterialName == "" {
 		br.Msg = "缺少素材库名称"
 		br.Msg = "缺少素材库名称"
 		return
 		return