zhaoy 8 months ago
parent
commit
743634285b
4 changed files with 42 additions and 2 deletions
  1. +13
    -1
      BPA.SAAS.Manage.Application/AExternalPlatform/BaseDto/DtoValidator.cs
  2. +2
    -0
      BPA.SAAS.Manage.Application/AExternalPlatform/Service/CheckService/Services/CheckServices.cs
  3. +21
    -1
      BPA.SAAS.Manage.Application/AExternalPlatform/Service/ThirdpartyPush/ThirdpartyPushServices.cs
  4. +6
    -0
      BPA.SAAS.Manage.Web.Core/Handlers/RequestAuditFiltercs.cs

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

@@ -83,7 +83,19 @@ namespace BPA.SAAS.Manage.Application.AExternalPlatform.BaseDto
{
if (p.GetValue(t, null) != null && p.GetValue(t, null).ToString() != "")
{
retstr = retstr + p.Name + "=" +JsonConvert.SerializeObject(p.GetValue(t, null)) + "&";

var type = p.GetValue(t, null).GetType().FullName;

if (type == "System.String"||type== "System.Boolean"||type== "System.Int32" || type == "System.DateTime")
{
retstr = retstr + p.Name + "=" + p.GetValue(t, null) + "&";
}
else
{

retstr = retstr + p.Name + "=" + JsonConvert.SerializeObject(p.GetValue(t, null)) + "&";
}

}

}


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

@@ -31,6 +31,8 @@ namespace BPA.SAAS.Manage.Application.AExternalPlatform.Service.CheckService.Ser
var thisSign = signStr + "&key=" + key;
var vvv = MD5Encryption.Encrypt(thisSign.ToUpper()).ToUpper();

var vvvvv = thisSign.ToUpper();

if (MD5Encryption.Encrypt(thisSign.ToUpper()).ToUpper() != signMd5.ToUpper())
{
throw Oops.Oh(ErrorCodeEnum.Code1005);


+ 21
- 1
BPA.SAAS.Manage.Application/AExternalPlatform/Service/ThirdpartyPush/ThirdpartyPushServices.cs View File

@@ -55,10 +55,30 @@ namespace BPA.SAAS.Manage.Application.AExternalPlatform.Service.ThirdpartyPush
}

[ AllowAnonymous, NonUnify]
public async Task<bool> aaaaa()
public async Task<bool> aaaaa(aaaaaaaaaaaa aaa)
{
return true;
}

#endregion
}


public class aaaaaaaaaaaa
{
public int a1 { get; set; }

public bool a2 { get; set; }

public DateTime a3 { get; set; }

public aaaa5 a4 { get; set; }

public List<aaaa5> a5 { get; set;}
}

public class aaaa5
{
public string aaa { get; set; }
}
}

+ 6
- 0
BPA.SAAS.Manage.Web.Core/Handlers/RequestAuditFiltercs.cs View File

@@ -63,6 +63,12 @@ namespace BPA.SAAS.Manage.Web.Core
// 获取请求参数(写入日志,需序列化成字符串后存储)
var parameters = context.ActionArguments;

foreach (var parameter in parameters)
{
var stingA = DtoValidator.GetSign(parameter.Value);
var vvvv = stingA;
}

if (requestUrl.ToUpper().Contains("ExternalPlatform".ToUpper()))
{



Loading…
Cancel
Save