Browse Source

Merge branch 'feature/eta2.2.6_material' into debug

xyxie 1 month ago
parent
commit
5c8370156d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      controllers/material/material.go

+ 1 - 0
controllers/material/material.go

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