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
c1c61318
Commit
c1c61318
authored
Jul 20, 2020
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
392e4d14
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
UserCommonModule.cs
Mall.Module.User/UserCommonModule.cs
+2
-2
WeChatPayController.cs
Mall.WebApi/Controllers/AppletWeChat/WeChatPayController.cs
+1
-1
No files found.
Mall.Module.User/UserCommonModule.cs
View file @
c1c61318
...
@@ -435,12 +435,12 @@ namespace Mall.Module.User
...
@@ -435,12 +435,12 @@ namespace Mall.Module.User
//判断返佣的过期时间
//判断返佣的过期时间
if
(
distributorModel
.
VipExpiryDate
.
HasValue
)
if
(
distributorModel
.
VipExpiryDate
.
HasValue
)
{
{
if
(
distributorModel
.
VipExpiryDate
.
Value
>
System
.
DateTime
.
Now
)
if
(
distributorModel
.
VipExpiryDate
.
Value
>
System
.
DateTime
.
Now
)
{
{
int
year
=
model
.
ExpiryDate
.
Value
.
Year
-
model
.
CreateDate
.
Year
;
int
year
=
model
.
ExpiryDate
.
Value
.
Year
-
model
.
CreateDate
.
Year
;
distributorModel
.
VipExpiryDate
=
distributorModel
.
VipExpiryDate
.
Value
.
AddYears
((
year
==
0
?
1
:
year
));
distributorModel
.
VipExpiryDate
=
Convert
.
ToDateTime
(
distributorModel
.
VipExpiryDate
.
Value
.
AddYears
((
year
==
0
?
1
:
year
)).
AddDays
(-
1
).
ToString
(
"yyyy-MM-dd 23:59:59"
));
}
}
else
else
{
{
...
...
Mall.WebApi/Controllers/AppletWeChat/WeChatPayController.cs
View file @
c1c61318
...
@@ -335,7 +335,7 @@ namespace Mall.WebApi.Controllers.AppletWeChat
...
@@ -335,7 +335,7 @@ namespace Mall.WebApi.Controllers.AppletWeChat
return
ApiResult
.
Failed
(
"您选择的VIP等级不存在"
);
return
ApiResult
.
Failed
(
"您选择的VIP等级不存在"
);
}
}
if
(
distributorModel
.
Grade
>
=
rechargeRulesModel
.
Grade
)
if
(
distributorModel
.
Grade
>
rechargeRulesModel
.
Grade
)
{
{
return
ApiResult
.
Failed
(
"购买VIP等级低于您当前VIP等级"
);
return
ApiResult
.
Failed
(
"购买VIP等级低于您当前VIP等级"
);
}
}
...
...
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