Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
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
youjj
cloud-platform
Commits
c85f2d0c
Commit
c85f2d0c
authored
Oct 14, 2019
by
libin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提现
parent
705c2872
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
AliNeedPayErrorEnum.java
...atform/universal/weixin/constant/AliNeedPayErrorEnum.java
+2
-1
OrderPayBiz.java
...ain/java/com/xxfc/platform/universal/biz/OrderPayBiz.java
+1
-1
No files found.
xx-universal/xx-universal-api/src/main/java/com/xxfc/platform/universal/weixin/constant/AliNeedPayErrorEnum.java
View file @
c85f2d0c
...
...
@@ -11,7 +11,8 @@ import lombok.AllArgsConstructor;
@AllArgsConstructor
public
enum
AliNeedPayErrorEnum
{
SYSTEM_ERROR
(
"系统繁忙"
,
"系统繁忙"
);
SYSTEM_ERROR
(
"系统繁忙"
,
"系统繁忙"
),
PAYER_BALANCE_NOT_ENOUGH
(
"余额不足"
,
"余额不足"
);
private
String
desc
;
private
String
reason
;
...
...
xx-universal/xx-universal-server/src/main/java/com/xxfc/platform/universal/biz/OrderPayBiz.java
View file @
c85f2d0c
...
...
@@ -425,7 +425,7 @@ public class OrderPayBiz extends BaseBiz<OrderPayMapper, OrderPay> implements In
log
.
info
(
"转账调用失败"
);
String
subCode
=
response
.
getSubCode
();
if
(
aliNeedPayErrorCodes
.
contains
(
subCode
))
{
throw
new
BaseException
(
"支付宝账号余额不足"
,
PaySubErrorCodeEnum
.
PAY_NEED_ERROR
.
getSubCode
());
throw
new
BaseException
(
AliNeedPayErrorEnum
.
valueOf
(
subCode
).
getDesc
()
,
PaySubErrorCodeEnum
.
PAY_NEED_ERROR
.
getSubCode
());
}
throw
new
BaseException
(
"支付宝转账失败:【错误码:"
+
response
.
getSubCode
()
+
" 错误信息:"
+
response
.
getSubMsg
()
+
"】"
,
PaySubErrorCodeEnum
.
PAY_ERROR
.
getSubCode
());
}
...
...
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