Jelajahi Sumber

Merge branch 'ETA_2.3.2' into debug

xiziwen 4 hari lalu
induk
melakukan
7d67d2b864
1 mengubah file dengan 3 tambahan dan 2 penghapusan
  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
 	}
 	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() {
 				errMsg = `该分类不存在或已删除`
 				err = nil