From fc7a9713fd00394e55884c6211ad69a088ff79ce Mon Sep 17 00:00:00 2001 From: dev02 Date: Mon, 24 Apr 2023 18:40:31 +0800 Subject: [PATCH] fix obix config --- Backend/Controllers/NiagaraDataSynchronizeController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Backend/Controllers/NiagaraDataSynchronizeController.cs b/Backend/Controllers/NiagaraDataSynchronizeController.cs index 3ef1717..8b6505e 100644 --- a/Backend/Controllers/NiagaraDataSynchronizeController.cs +++ b/Backend/Controllers/NiagaraDataSynchronizeController.cs @@ -50,8 +50,8 @@ namespace Backend.Controllers var obixApiConfig = new Backend.Models.ObixApiConfig(); EDFunction ed = new EDFunction(); obixApiConfig.ApiBase = variableObix.Where(x => x.Name == "ApiBase").Select(x => x.Value).FirstOrDefault() + "obix/config/Program/ObixQuery/query/"; - obixApiConfig.UrlSlot = variableObix.Where(x => x.Name == "url_slot").Select(x => x.Value).FirstOrDefault(); - obixApiConfig.TagQuantity = variableObix.Where(x => x.Name == "tag_quantity").Select(x => x.Value).FirstOrDefault(); + obixApiConfig.UrlSlot = ed.AESDecrypt(variableObix.Where(x => x.Name == "url_slot").Select(x => x.Value).FirstOrDefault()); + obixApiConfig.TagQuantity = ed.AESDecrypt(variableObix.Where(x => x.Name == "tag_quantity").Select(x => x.Value).FirstOrDefault()); List ds;