2 Commits e1df6ee9b7 ... 7d67d2b864

Author SHA1 Message Date
  xiziwen 7d67d2b864 Merge branch 'ETA_2.3.2' into debug 4 days ago
  xiziwen 7ba6864eb6 fix 4 days ago
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

@@ -218,8 +218,9 @@ func EditClarksonsIndex(indexId, classifyId int) (baseFromClarksonsIndex *data_m
 		return
 		return
 	}
 	}
 	if classifyId > 0 {
 	if classifyId > 0 {
-		classify, err := data_manage.GetClarksonsClassifyById(classifyId)
-		if err != nil {
+		classify, e := data_manage.GetClarksonsClassifyById(classifyId)
+		if e != nil {
+			err = e
 			if err.Error() == utils.ErrNoRow() {
 			if err.Error() == utils.ErrNoRow() {
 				errMsg = `该分类不存在或已删除`
 				errMsg = `该分类不存在或已删除`
 				err = nil
 				err = nil