Browse Source

fix:移除excel的来源字数限制

Roc 1 month ago
parent
commit
d7ab02ed63
1 changed files with 12 additions and 12 deletions
  1. 12 12
      controllers/data_manage/excel/excel_info.go

+ 12 - 12
controllers/data_manage/excel/excel_info.go

@@ -109,18 +109,18 @@ func (c *ExcelInfoController) Add() {
 		Text string `json:"text"`
 	}
 
-	if req.SourcesFrom != "" && len(req.SourcesFrom) > 0 {
-		var sourcesFrom SourcesFrom
-		err = json.Unmarshal([]byte(req.SourcesFrom), &sourcesFrom)
-		if err != nil {
-			return
-		}
-		if len(sourcesFrom.Text) > 50 {
-			br.Msg = "字数已达上限!"
-			br.ErrMsg = "来源文本字数已达上限,请修改!"
-			return
-		}
-	}
+	//if req.SourcesFrom != "" && len(req.SourcesFrom) > 0 {
+	//	var sourcesFrom SourcesFrom
+	//	err = json.Unmarshal([]byte(req.SourcesFrom), &sourcesFrom)
+	//	if err != nil {
+	//		return
+	//	}
+	//	if len(sourcesFrom.Text) > 50 {
+	//		br.Msg = "字数已达上限!"
+	//		br.ErrMsg = "来源文本字数已达上限,请修改!"
+	//		return
+	//	}
+	//}
 
 	if req.ParentId > 0 {
 		parentExcelInfo, e := excel3.GetExcelInfoById(req.ParentId)