hsun hai 1 ano
pai
achega
b47950e100
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      controllers/edb_info.go

+ 1 - 1
controllers/edb_info.go

@@ -376,7 +376,7 @@ func (this *EdbInfoController) ResetEdbClassify() {
 	// 获取指标信息
 	edbInfo, e := models.GetEdbInfoOnlyByEdbCode(req.IndexCode)
 	if e != nil {
-		if e.Error() != utils.ErrNoRow() {
+		if e.Error() == utils.ErrNoRow() {
 			br.Msg = "指标不存在"
 			return
 		}