Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fzm-joying
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
lei
fzm-joying
Commits
fd241994
Commit
fd241994
authored
May 12, 2022
by
33
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
防止重复退款
parent
2a083fc1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
WxPayServiceImpl.java
...in/java/com/fzm/common/service/impl/WxPayServiceImpl.java
+7
-0
No files found.
joying-common/src/main/java/com/fzm/common/service/impl/WxPayServiceImpl.java
View file @
fd241994
...
...
@@ -259,6 +259,13 @@ public class WxPayServiceImpl implements WxPayService {
refund
=
new
Refund
();
out_refund_no
=
snowflakeUtil
.
snowflakeId
();
}
else
{
Integer
refundStatus
=
refund
.
getRefundStatus
();
if
(
refundStatus
.
equals
(
RefundStatus
.
REFUNDING
.
getStatus
()))
{
throw
GlobalException
.
newException
(
ResultCode
.
REFUND_FAILED
,
"当前订单正在退款中,请勿重复点击"
);
}
if
(
refundStatus
.
equals
(
RefundStatus
.
SUCCESS
.
getStatus
()))
{
throw
GlobalException
.
newException
(
ResultCode
.
REFUND_FAILED
,
"当前订单已退款完成,请勿重复点击"
);
}
out_refund_no
=
refund
.
getId
();
}
String
url
=
"https://api.mch.weixin.qq.com/v3/refund/domestic/refunds"
;
...
...
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