测试验签

This commit is contained in:
ChenYi 2025-10-31 14:58:33 +08:00
parent 645d3e1db0
commit 54e97a331e
2 changed files with 3 additions and 3 deletions

View File

@ -250,11 +250,11 @@ namespace JiShe.IoT.BusinessSystemAggregation
{
try
{
return HandleOpenApiRequest<BatchCreateDeviceInfoInput>(null, null);
return HandleOpenApiRequest<BatchCreateDeviceInfoInput>(input, new ServerApplicationOptions());
}
catch (Exception ex)
{
return HandleOpenApiRequest<BatchCreateDeviceInfoInput>(null, null);
return HttpDataResultExtensions.Failed($"业务系统批量新增设备数据,发送异常:{ex.Message}", -106);
}
}
}

View File

@ -84,7 +84,7 @@ namespace JiShe.IoT
/// <returns></returns>
protected HttpDataResult<T> HandleOpenApiRequest<T>(OpenApiRequest input, ServerApplicationOptions serverOptions) where T : class
{
if (string.IsNullOrWhiteSpace(input.Message) || string.IsNullOrWhiteSpace(input.Nonce) || string.IsNullOrWhiteSpace(input.Signature))
if (input == null || serverOptions == null || string.IsNullOrWhiteSpace(input.Message) || string.IsNullOrWhiteSpace(input.Nonce) || string.IsNullOrWhiteSpace(input.Signature))
{
return HttpDataResultExtensions.Failed<T>(null, "请求参数不能为空", -1101);
}