取消解密 variable 中的 obix 參數

This commit is contained in:
GiteaAdmin 2023-04-26 01:16:05 +08:00
parent 6fe713d22b
commit 1847a7c2f2

View File

@ -51,8 +51,8 @@ namespace Backend.Controllers
var obixApiConfig = new Backend.Models.ObixApiConfig(); var obixApiConfig = new Backend.Models.ObixApiConfig();
EDFunction ed = new EDFunction(); EDFunction ed = new EDFunction();
obixApiConfig.ApiBase = variableObix.Where(x => x.Name == "ApiBase").Select(x => x.Value).FirstOrDefault() + "obix/config/Program/ObixQuery/query/"; obixApiConfig.ApiBase = variableObix.Where(x => x.Name == "ApiBase").Select(x => x.Value).FirstOrDefault() + "obix/config/Program/ObixQuery/query/";
obixApiConfig.UrlSlot = ed.AESDecrypt(variableObix.Where(x => x.Name == "url_slot").Select(x => x.Value).FirstOrDefault()); obixApiConfig.UrlSlot =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()); obixApiConfig.TagQuantity = variableObix.Where(x => x.Name == "tag_quantity").Select(x => x.Value).FirstOrDefault();
List<Device_value> ds; List<Device_value> ds;
@ -142,9 +142,9 @@ namespace Backend.Controllers
var obixApiConfig = new Backend.Models.ObixApiConfig(); var obixApiConfig = new Backend.Models.ObixApiConfig();
EDFunction ed = new EDFunction(); EDFunction ed = new EDFunction();
obixApiConfig.ApiBase = variableObix.Where(x => x.Name == "ApiBase").Select(x => x.Value).FirstOrDefault(); obixApiConfig.ApiBase = variableObix.Where(x => x.Name == "ApiBase").Select(x => x.Value).FirstOrDefault();
obixApiConfig.UserName = ed.AESDecrypt(variableObix.Where(x => x.Name == "UserName").Select(x => x.Value).FirstOrDefault()); obixApiConfig.UserName = variableObix.Where(x => x.Name == "UserName").Select(x => x.Value).FirstOrDefault();
obixApiConfig.Password = ed.AESDecrypt(variableObix.Where(x => x.Name == "Password").Select(x => x.Value).FirstOrDefault()); obixApiConfig.Password = variableObix.Where(x => x.Name == "Password").Select(x => x.Value).FirstOrDefault();
obixApiConfig.UrlSlot = ed.AESDecrypt(variableObix.Where(x => x.Name == "url_slot").Select(x => x.Value).FirstOrDefault()); obixApiConfig.UrlSlot = variableObix.Where(x => x.Name == "url_slot").Select(x => x.Value).FirstOrDefault();
ds = svc.obixHisQuery(obixApiConfig.ApiBase + "obix/config/Program/ObixQuery/query/", obixApiConfig.ApiBase + "obix/histories",obixApiConfig.UrlSlot, obixApiConfig.UserName, ds = svc.obixHisQuery(obixApiConfig.ApiBase + "obix/config/Program/ObixQuery/query/", obixApiConfig.ApiBase + "obix/histories",obixApiConfig.UrlSlot, obixApiConfig.UserName,
obixApiConfig.Password); obixApiConfig.Password);