浏览代码

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

xyxie 3 周之前
父节点
当前提交
c3f420dbf9
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      controllers/material/material.go

+ 1 - 0
controllers/material/material.go

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