Browse Source

提交

master
gwbvipvip 8 months ago
parent
commit
f64f2eab63
3 changed files with 4 additions and 2 deletions
  1. +1
    -1
      BPA.SAAS.Manage.Application/AExternalPlatform/BaseDto/DtoValidator.cs
  2. +1
    -0
      BPA.SAAS.Manage.Application/AExternalPlatform/Service/CheckService/Services/CheckServices.cs
  3. +2
    -1
      BPA.SAAS.Manage.Web.Core/Handlers/RequestAuditFiltercs.cs

+ 1
- 1
BPA.SAAS.Manage.Application/AExternalPlatform/BaseDto/DtoValidator.cs View File

@@ -115,7 +115,7 @@ namespace BPA.SAAS.Manage.Application.AExternalPlatform.BaseDto
//遍历List泛型生成我们要签名的字符串
proplist.ForEach(p =>
{
if (p.Name.ToLower() != name.ToLower())
if (p.Name.ToLower() == name.ToLower())
{
retstr= p.GetValue(obj, null)?.ToString();
}


+ 1
- 0
BPA.SAAS.Manage.Application/AExternalPlatform/Service/CheckService/Services/CheckServices.cs View File

@@ -45,6 +45,7 @@ namespace BPA.SAAS.Manage.Application.AExternalPlatform.Service.CheckService.Ser
private async Task CheckKey(string key)
{
var data = await SqlSugarDb.Db.Queryable<BPA_PlatformAuthorization>()
.ClearFilter()
.FirstAsync(x => x.Key == key);
await CheckTenant(data.GroupId);
if (data == null)


+ 2
- 1
BPA.SAAS.Manage.Web.Core/Handlers/RequestAuditFiltercs.cs View File

@@ -51,11 +51,12 @@ namespace BPA.SAAS.Manage.Web.Core
// 获取请求参数(写入日志,需序列化成字符串后存储)
var parameters = context.ActionArguments;
var key= httpRequest.Headers["key"];
var sign= httpRequest.Headers["sign"];
List<PropertyInfo> proplist = new List<PropertyInfo>();
foreach (var parameter in parameters)
{
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);
}
}


Loading…
Cancel
Save