Browse Source

Merge branch 'ETA_2.3.2' into debug

xiziwen 1 day ago
parent
commit
e1f1985002
1 changed files with 3 additions and 2 deletions
  1. 3 2
      services/data/base_from_clarksons.go

+ 3 - 2
services/data/base_from_clarksons.go

@@ -725,8 +725,9 @@ func MoveClarksonsClassifyV2(classifyId, parentClassifyId, prevClassifyId, nextC
 		classifyInfo.ModifyTime = time.Now()
 		classifyInfo.ModifyTime = time.Now()
 		updateCol = append(updateCol, "Sort", "ModifyTime")
 		updateCol = append(updateCol, "Sort", "ModifyTime")
 	} else {
 	} else {
-		firstClassify, err := data_manage.GetFirstClarksonsClassifyByParentId(classifyInfo.ParentId)
-		if err != nil && err.Error() != utils.ErrNoRow() {
+		firstClassify, e := data_manage.GetFirstClarksonsClassifyByParentId(classifyInfo.ParentId)
+		if e != nil && e.Error() != utils.ErrNoRow() {
+			err = e
 			errMsg = "移动失败"
 			errMsg = "移动失败"
 			err = errors.New("获取获取当前父级分类下的排序第一条的分类信息失败,Err:" + err.Error())
 			err = errors.New("获取获取当前父级分类下的排序第一条的分类信息失败,Err:" + err.Error())
 			return
 			return