Ver Fonte

fix:过滤python

Roc há 2 anos atrás
pai
commit
9d3e7ed82c
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      controllers/base_from_calculate.go

+ 4 - 0
controllers/base_from_calculate.go

@@ -542,6 +542,10 @@ func (this *CalculateController) CalculateBatchSave() {
 			return
 		}
 		edbInfoId, err = models.EditCalculateLjztbpj(&req, edbInfo, fromEdbInfo, tbzEdbInfo)
+	} else if req.Source == utils.DATA_SOURCE_PYTHON {
+		br.Ret = 200
+		br.Success = true
+		br.Msg = "保存成功"
 	} else {
 		br.Msg = "无效计算方式"
 		br.ErrMsg = "无效计算方式,source:" + strconv.Itoa(req.Source)