浏览代码

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

xyxie 1 月之前
父节点
当前提交
5c8370156d
共有 1 个文件被更改,包括 1 次插入0 次删除
  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