Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fit-finance
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fitness-server
fit-finance
Commits
4572400a
Commit
4572400a
authored
Apr 22, 2024
by
程裕兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:pay
parent
710f5e26
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
service/src/main/java/com/jiejing/fitness/finance/service/pay/enums/PayFailMessageReplaceEnums.java
+5
-3
No files found.
service/src/main/java/com/jiejing/fitness/finance/service/pay/enums/PayFailMessageReplaceEnums.java
View file @
4572400a
...
@@ -18,9 +18,10 @@ public enum PayFailMessageReplaceEnums {
...
@@ -18,9 +18,10 @@ public enum PayFailMessageReplaceEnums {
/**
/**
*
*
*/
*/
OTHER
(
"OTHER__"
,
PAY_FAIL_1
),
OTHER
(
""
,
PAY_FAIL_1
),
E1
(
"当前商户需补齐相关资料后,才可进行相应的支付交易,请商户联系微信服务商"
,
PAY_FAIL_4
),
E1
(
"当前商户需补齐相关资料后,才可进行相应的支付交易,请商户联系对接的微信支付服务商"
,
PAY_FAIL_4
),
E2
(
"当前商户需补齐相关资料后,才可进行相应的支付交易,请商户联系服务商"
,
PAY_FAIL_5
),
E2
(
"业务执行失败[当前商户需补齐相关资料后,才可进行相应的支付交易,请商户联系对接的微信支付服务商]"
,
PAY_FAIL_4
),
E3
(
"业务执行失败[当前商户需补齐相关资料后,才可进行支付交易,请商户联系服务商。]"
,
PAY_FAIL_5
),
;
;
private
final
String
source
;
private
final
String
source
;
...
@@ -32,6 +33,7 @@ public enum PayFailMessageReplaceEnums {
...
@@ -32,6 +33,7 @@ public enum PayFailMessageReplaceEnums {
return
OTHER
.
getTarget
();
return
OTHER
.
getTarget
();
}
}
return
Arrays
.
stream
(
PayFailMessageReplaceEnums
.
values
())
return
Arrays
.
stream
(
PayFailMessageReplaceEnums
.
values
())
.
filter
(
e
->
OTHER
!=
e
)
.
filter
(
e
->
e
.
getSource
().
contains
(
source
)
||
source
.
contains
(
e
.
getSource
())).
findFirst
()
.
filter
(
e
->
e
.
getSource
().
contains
(
source
)
||
source
.
contains
(
e
.
getSource
())).
findFirst
()
.
orElse
(
OTHER
).
getTarget
();
.
orElse
(
OTHER
).
getTarget
();
}
}
...
...
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