Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
mall.oytour.com
Commits
0030888e
Commit
0030888e
authored
Apr 14, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
6e820300
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
16 deletions
+21
-16
UserModule.cs
Mall.Module.User/UserModule.cs
+14
-16
Startup.cs
Mall.WebApi/Startup.cs
+7
-0
No files found.
Mall.Module.User/UserModule.cs
View file @
0030888e
...
@@ -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
);
}
}
...
...
Mall.WebApi/Startup.cs
View file @
0030888e
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment