Commit 0030888e authored by 黄奎's avatar 黄奎

页面修改

parent 6e820300
...@@ -1149,26 +1149,24 @@ namespace Mall.Module.User ...@@ -1149,26 +1149,24 @@ namespace Mall.Module.User
{ nameof(RB_Distributor_Custom.ThreeDistributionName),demodel.ThreeDistributionName}, { nameof(RB_Distributor_Custom.ThreeDistributionName),demodel.ThreeDistributionName},
{ nameof(RB_Distributor_Custom.UpdateDate),demodel.UpdateDate}, { nameof(RB_Distributor_Custom.UpdateDate),demodel.UpdateDate},
{ nameof(RB_Distributor_Custom.IsShowVIPBuyPic),demodel.IsShowVIPBuyPic}, { nameof(RB_Distributor_Custom.IsShowVIPBuyPic),demodel.IsShowVIPBuyPic},
{ nameof(RB_Distributor_Custom.VipBuyICO),demodel.VipBuyICO}, { nameof(RB_Distributor_Custom.VipBuyICO),demodel.VipBuyICO},
{ nameof(RB_Distributor_Custom.VipBuyUrl),demodel.VipBuyUrl}, { nameof(RB_Distributor_Custom.VipBuyUrl),demodel.VipBuyUrl},
{ nameof(RB_Distributor_Custom.OpenOfflineEarnings),demodel.OpenOfflineEarnings} { nameof(RB_Distributor_Custom.OpenOfflineEarnings),demodel.OpenOfflineEarnings}
}; };
List<WhereHelper> whereHelpers = new List<WhereHelper>() { List<WhereHelper> whereHelpers = new List<WhereHelper>()
new WhereHelper(){ {
new WhereHelper()
{
FiledName=nameof(RB_Distributor_Custom.Id), FiledName=nameof(RB_Distributor_Custom.Id),
FiledValue=demodel.Id, FiledValue=demodel.Id,
OperatorEnum=OperatorEnum.Equal OperatorEnum=OperatorEnum.Equal
}, },
new WhereHelper(){ new WhereHelper()
{
FiledName=nameof(RB_Distributor_Custom.TenantId), FiledName=nameof(RB_Distributor_Custom.TenantId),
FiledValue=demodel.TenantId, FiledValue=demodel.TenantId,
OperatorEnum=OperatorEnum.Equal OperatorEnum=OperatorEnum.Equal
}, },
new WhereHelper(){
FiledName=nameof(RB_Distributor_Custom.MallBaseId),
FiledValue=demodel.MallBaseId,
OperatorEnum=OperatorEnum.Equal
}
}; };
return distributor_CustomRepository.Update(keyValuePairs, whereHelpers); return distributor_CustomRepository.Update(keyValuePairs, whereHelpers);
} }
......
...@@ -18,6 +18,7 @@ using Microsoft.Extensions.Hosting; ...@@ -18,6 +18,7 @@ using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options; using Microsoft.Extensions.Options;
using Senparc.CO2NET; using Senparc.CO2NET;
using Senparc.CO2NET.HttpUtility;
using Senparc.CO2NET.RegisterServices; using Senparc.CO2NET.RegisterServices;
using Senparc.Weixin; using Senparc.Weixin;
using Senparc.Weixin.Entities; using Senparc.Weixin.Entities;
...@@ -37,6 +38,12 @@ namespace Mall.WebApi ...@@ -37,6 +38,12 @@ namespace Mall.WebApi
// This method gets called by the runtime. Use this method to add services to the container. // This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services) public void ConfigureServices(IServiceCollection services)
{ {
//services.AddHttpClient("elite-wechat").ConfigurePrimaryHttpMessageHandler(() =>
//{
// var httpClientHandler = HttpClientHelper.GetHttpClientHandler(null, RequestUtility.SenparcHttpClientWebProxy, System.Net.DecompressionMethods.GZip);
// httpClientHandler.ServerCertificateCustomValidationCallback = (message, cert, chain, errir) => true;
// return httpClientHandler;
//});
services.Configure<Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions>(x => x.AllowSynchronousIO = true) services.Configure<Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions>(x => x.AllowSynchronousIO = true)
.Configure<IISServerOptions>(x => x.AllowSynchronousIO = true); .Configure<IISServerOptions>(x => x.AllowSynchronousIO = true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment