|
@@ -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)
|