@@ -115,7 +115,7 @@ namespace BPA.SAAS.Manage.Application.AExternalPlatform.BaseDto | |||||
//遍历List泛型生成我们要签名的字符串 | //遍历List泛型生成我们要签名的字符串 | ||||
proplist.ForEach(p => | proplist.ForEach(p => | ||||
{ | { | ||||
if (p.Name.ToLower() != name.ToLower()) | |||||
if (p.Name.ToLower() == name.ToLower()) | |||||
{ | { | ||||
retstr= p.GetValue(obj, null)?.ToString(); | retstr= p.GetValue(obj, null)?.ToString(); | ||||
} | } | ||||
@@ -45,6 +45,7 @@ namespace BPA.SAAS.Manage.Application.AExternalPlatform.Service.CheckService.Ser | |||||
private async Task CheckKey(string key) | private async Task CheckKey(string key) | ||||
{ | { | ||||
var data = await SqlSugarDb.Db.Queryable<BPA_PlatformAuthorization>() | var data = await SqlSugarDb.Db.Queryable<BPA_PlatformAuthorization>() | ||||
.ClearFilter() | |||||
.FirstAsync(x => x.Key == key); | .FirstAsync(x => x.Key == key); | ||||
await CheckTenant(data.GroupId); | await CheckTenant(data.GroupId); | ||||
if (data == null) | if (data == null) | ||||
@@ -51,11 +51,12 @@ namespace BPA.SAAS.Manage.Web.Core | |||||
// 获取请求参数(写入日志,需序列化成字符串后存储) | // 获取请求参数(写入日志,需序列化成字符串后存储) | ||||
var parameters = context.ActionArguments; | var parameters = context.ActionArguments; | ||||
var key= httpRequest.Headers["key"]; | var key= httpRequest.Headers["key"]; | ||||
var sign= httpRequest.Headers["sign"]; | |||||
List<PropertyInfo> proplist = new List<PropertyInfo>(); | List<PropertyInfo> proplist = new List<PropertyInfo>(); | ||||
foreach (var parameter in parameters) | foreach (var parameter in parameters) | ||||
{ | { | ||||
var stingA= DtoValidator.GetSign(parameter.Value); | var stingA= DtoValidator.GetSign(parameter.Value); | ||||
var sign = DtoValidator.GetAttributePrice(parameter.Value, "sign"); | |||||
//var sign = DtoValidator.GetAttributePrice(parameter.Value, "sign"); | |||||
await _checkServices.CheckSign(key, stingA, sign); | await _checkServices.CheckSign(key, stingA, sign); | ||||
} | } | ||||
} | } | ||||