mirror of
https://github.com/dotnetcore/DotnetSpider.git
synced 2026-10-27 12:17:37 +08:00
fix post body is null & portal issue
This commit is contained in:
+2
-2
@@ -4,8 +4,8 @@
|
||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
|
||||
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
|
||||
<Version>5.0.0-beta3</Version>
|
||||
<FileVersion>5.0.0.1</FileVersion>
|
||||
<Version>5.0.0-beta4</Version>
|
||||
<FileVersion>5.0.0.4</FileVersion>
|
||||
<Authors>zlzforever@163.com;</Authors>
|
||||
<Copyright>Copyright 2018 Lewis Zou</Copyright>
|
||||
<Description>DotnetSpider, a .NET Standard web crawling library. It is lightweight, efficient and fast high-level web crawling & scraping framework</Description>
|
||||
|
||||
@@ -234,6 +234,11 @@ namespace DotnetSpider.Portal.Controllers.API
|
||||
.ToDictionaryAsync(x => x.Id, x => x);
|
||||
foreach (var item in @out.Data)
|
||||
{
|
||||
if (!dict.ContainsKey(item.Batch))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
var statistics = dict[item.Batch];
|
||||
if (statistics != null)
|
||||
{
|
||||
|
||||
@@ -13,6 +13,7 @@ using Microsoft.Extensions.Hosting;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Options;
|
||||
using Serilog;
|
||||
using SwiftMQ.DependencyInjection;
|
||||
|
||||
namespace DotnetSpider.Sample.samples
|
||||
{
|
||||
|
||||
@@ -122,7 +122,7 @@ namespace DotnetSpider.Agent
|
||||
stringContent.Content,
|
||||
Encoding.GetEncoding(stringContent.EncodingName), stringContent.MediaType);
|
||||
}
|
||||
else if (content is ByteArrayContent byteArrayContent)
|
||||
else if (content is ByteArrayContent byteArrayContent && byteArrayContent.Bytes != null)
|
||||
{
|
||||
httpRequestMessage.Content = new System.Net.Http.ByteArrayContent(byteArrayContent.Bytes);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user