忽略列表更新

This commit is contained in:
liuzl 2022-08-24 10:19:21 +08:00
parent a2493d05ce
commit f4ec11a634
4 changed files with 56 additions and 3 deletions

1
.gitignore vendored
View File

@ -33,3 +33,4 @@
/Waste.SocketService.cs/obj /Waste.SocketService.cs/obj
/WasteHexTest/obj /WasteHexTest/obj
/WasteHexTest/bin /WasteHexTest/bin
/Waste.Web.Entry/wwwroot/bugs

View File

@ -9,6 +9,7 @@ using Microsoft.Net.Http.Headers;
using Nirvana.Common; using Nirvana.Common;
using Nirvana.Common.File; using Nirvana.Common.File;
using System; using System;
using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
@ -105,7 +106,7 @@ namespace Waste.Application.ThirdApiInfo
var boundary = MultipartRequestHelper.GetBoundary(MediaTypeHeaderValue.Parse(Request.ContentType), _defaultFormOptions.MultipartBoundaryLengthLimit); var boundary = MultipartRequestHelper.GetBoundary(MediaTypeHeaderValue.Parse(Request.ContentType), _defaultFormOptions.MultipartBoundaryLengthLimit);
var reader = new MultipartReader(boundary, Request.Body); var reader = new MultipartReader(boundary, Request.Body);
var section = await reader.ReadNextSectionAsync(); var section = await reader.ReadNextSectionAsync();
while (section != null && section.Body.Position != section.Body.Length) while (section != null)
{ {
var hasContentDispositionHeader = var hasContentDispositionHeader =
ContentDispositionHeaderValue.TryParse( ContentDispositionHeaderValue.TryParse(
@ -231,7 +232,8 @@ namespace Waste.Application.ThirdApiInfo
string rootpath = _hostingEnvironment.WebRootPath; string rootpath = _hostingEnvironment.WebRootPath;
//读取文件,返回升级信息 //读取文件,返回升级信息
var path = $"{rootpath}/apks/upgrade/{type}.txt"; var path = $"{rootpath}/apks/upgrade/{type}.txt";
if (myver == 421 && (ecode.Equals("419b553e92986112", StringComparison.OrdinalIgnoreCase) || ecode.Equals("fa324b8fa8da1fc0", StringComparison.OrdinalIgnoreCase))) var ulist = new List<string> { "419b553e92986112", "8f259824aef42c36", "fa324b8fa8da1fc0", "be6d6ef03519d42e", "352050657b2b2608", "d3fc9a38d7f67604" };
if (ulist.Contains(ecode))
{ {
path = $"{rootpath}/apks/upgrade/OTHER.txt"; path = $"{rootpath}/apks/upgrade/OTHER.txt";
} }

View File

@ -3146,6 +3146,56 @@
上报时间 上报时间
</summary> </summary>
</member> </member>
<member name="T:Waste.Application.ThirdApiInfo.AppS2CDto`1">
<summary>
app端返回的信息
</summary>
</member>
<member name="P:Waste.Application.ThirdApiInfo.AppS2CDto`1.status">
<summary>
信息
</summary>
</member>
<member name="T:Waste.Application.ThirdApiInfo.AppCommonS2CDto">
<summary>
app端返回的通用信息
</summary>
</member>
<member name="P:Waste.Application.ThirdApiInfo.AppCommonS2CDto.code">
<summary>
错误代码
</summary>
</member>
<member name="P:Waste.Application.ThirdApiInfo.AppCommonS2CDto.name">
<summary>
名称
</summary>
</member>
<member name="P:Waste.Application.ThirdApiInfo.AppCommonS2CDto.message">
<summary>
错误信息
</summary>
</member>
<member name="T:Waste.Application.ThirdApiInfo.AppVerS2CDto">
<summary>
app端版本信息返回值
</summary>
</member>
<member name="P:Waste.Application.ThirdApiInfo.AppVerS2CDto.code">
<summary>
版本号
</summary>
</member>
<member name="P:Waste.Application.ThirdApiInfo.AppVerS2CDto.name">
<summary>
版本说明
</summary>
</member>
<member name="P:Waste.Application.ThirdApiInfo.AppVerS2CDto.update_url">
<summary>
下载地址
</summary>
</member>
<member name="T:Waste.Application.ThirdApiInfo.IOpenService"> <member name="T:Waste.Application.ThirdApiInfo.IOpenService">
<summary> <summary>
设备对接接口 设备对接接口

File diff suppressed because one or more lines are too long