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
ad590c4d
Commit
ad590c4d
authored
Jun 23, 2021
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
ba43ebeb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
ActivityModule.cs
Mall.Module.Education/ActivityModule.cs
+1
-1
Startup.cs
Mall.WebApi/Startup.cs
+8
-5
No files found.
Mall.Module.Education/ActivityModule.cs
View file @
ad590c4d
...
@@ -729,7 +729,7 @@ namespace Mall.Module.Education
...
@@ -729,7 +729,7 @@ namespace Mall.Module.Education
Number
=
1
,
//model.PeopleNum,
Number
=
1
,
//model.PeopleNum,
OriginalMoney
=
Convert
.
ToDecimal
(
model
.
Money
)
,
OriginalMoney
=
Convert
.
ToDecimal
(
model
.
Money
)
,
UnitPrice
=
Convert
.
ToDecimal
(
model
.
Money
)
,
UnitPrice
=
Convert
.
ToDecimal
(
model
.
Money
)
,
Remark
=
umodel
.
Name
+
model
.
ActivityId
+
model
.
Merchants
No
Remark
=
"微信昵称:"
+
umodel
.
Name
+
"活动id:"
+
model
.
ActivityId
+
"订单号:"
+
Out_Trade_
No
}
}
};
};
...
...
Mall.WebApi/Startup.cs
View file @
ad590c4d
...
@@ -59,8 +59,10 @@ namespace Mall.WebApi
...
@@ -59,8 +59,10 @@ namespace Mall.WebApi
List
<
string
>
corsArray
=
new
List
<
string
>()
List
<
string
>
corsArray
=
new
List
<
string
>()
{
{
"http://localhost:8081"
,
"http://localhost:8081"
,
"http://localhost:8181"
,
"http://localhost:8080"
,
"http://localhost:8080"
,
"http://localhost:8082"
,
"http://localhost:8082"
,
"http://localhost:8083"
,
"http://127.0.0.1:50512"
,
"http://127.0.0.1:50512"
,
"http://127.0.0.1:20224"
,
"http://127.0.0.1:20224"
,
"http://127.0.0.1:28221"
,
"http://127.0.0.1:28221"
,
...
@@ -70,9 +72,10 @@ namespace Mall.WebApi
...
@@ -70,9 +72,10 @@ namespace Mall.WebApi
"http://mall.oytour.com"
,
"http://mall.oytour.com"
,
"http://testmall.oytour.com"
,
"http://testmall.oytour.com"
,
"http://yx.oytour.com"
,
"http://yx.oytour.com"
,
"https://mallapi.oytour.com"
};
};
services
.
AddCors
(
options
=>
options
.
AddPolicy
(
"AllowCors"
,
policy
=>
policy
.
AllowAnyHeader
().
AllowAnyMethod
().
AllowCredentials
().
WithOrigins
(
corsArray
.
ToArray
())));
services
.
AddCors
(
options
=>
options
.
AddPolicy
(
"AllowCors"
,
policy
=>
policy
.
AllowAnyHeader
().
AllowAnyMethod
().
AllowCredentials
().
WithOrigins
(
corsArray
.
ToArray
())));
services
.
AddCap
(
x
=>
services
.
AddCap
(
x
=>
{
{
x
.
UseMongoDB
(
Common
.
Config
.
Mongo
);
x
.
UseMongoDB
(
Common
.
Config
.
Mongo
);
...
@@ -81,10 +84,10 @@ namespace Mall.WebApi
...
@@ -81,10 +84,10 @@ namespace Mall.WebApi
cfg
.
HostName
=
Common
.
Config
.
ReadConfigKey
(
"RabbitMqConfig"
,
"HostName"
);
cfg
.
HostName
=
Common
.
Config
.
ReadConfigKey
(
"RabbitMqConfig"
,
"HostName"
);
cfg
.
VirtualHost
=
Common
.
Config
.
ReadConfigKey
(
"RabbitMqConfig"
,
"VirtualHost"
);
cfg
.
VirtualHost
=
Common
.
Config
.
ReadConfigKey
(
"RabbitMqConfig"
,
"VirtualHost"
);
cfg
.
Port
=
Convert
.
ToInt32
(
Common
.
Config
.
ReadConfigKey
(
"RabbitMqConfig"
,
"Port"
));
cfg
.
Port
=
Convert
.
ToInt32
(
Common
.
Config
.
ReadConfigKey
(
"RabbitMqConfig"
,
"Port"
));
cfg
.
UserName
=
Common
.
Config
.
ReadConfigKey
(
"RabbitMqConfig"
,
"UserName"
);
cfg
.
UserName
=
Common
.
Config
.
ReadConfigKey
(
"RabbitMqConfig"
,
"UserName"
);
cfg
.
Password
=
Common
.
Config
.
ReadConfigKey
(
"RabbitMqConfig"
,
"Password"
);
cfg
.
Password
=
Common
.
Config
.
ReadConfigKey
(
"RabbitMqConfig"
,
"Password"
);
});
});
//失败后的重试次数,默认50次;在FailedRetryInterval默认60秒的情况下,即默认重试50*60秒(50分钟)之后放弃失败重试
//失败后的重试次数,默认50次;在FailedRetryInterval默认60秒的情况下,即默认重试50*60秒(50分钟)之后放弃失败重试
x
.
FailedRetryCount
=
10
;
x
.
FailedRetryCount
=
10
;
//失败后的重拾间隔,默认60秒
//失败后的重拾间隔,默认60秒
x
.
FailedRetryInterval
=
10
;
x
.
FailedRetryInterval
=
10
;
...
@@ -92,7 +95,7 @@ namespace Mall.WebApi
...
@@ -92,7 +95,7 @@ namespace Mall.WebApi
x
.
SucceedMessageExpiredAfter
=
3600
;
x
.
SucceedMessageExpiredAfter
=
3600
;
});
});
}
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public
void
Configure
(
IApplicationBuilder
app
,
IWebHostEnvironment
env
,
IHostApplicationLifetime
appLifetime
,
IOptions
<
SenparcSetting
>
senparcSetting
,
IOptions
<
SenparcWeixinSetting
>
senparcWeixinSetting
)
public
void
Configure
(
IApplicationBuilder
app
,
IWebHostEnvironment
env
,
IHostApplicationLifetime
appLifetime
,
IOptions
<
SenparcSetting
>
senparcSetting
,
IOptions
<
SenparcWeixinSetting
>
senparcWeixinSetting
)
...
...
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