浏览代码

Merge branch 'ETA_2.3.2' into debug

xiziwen 4 天之前
父节点
当前提交
7d67d2b864
共有 1 个文件被更改,包括 3 次插入2 次删除
  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