记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
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
董敬伟
liquidnet-bus-v1
Commits
e98ed83d
Commit
e98ed83d
authored
Mar 01, 2022
by
zhengfuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改支付。
parent
b76df422
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
DragonErrorCodeEnum.java
...iquidnet/service/dragon/constant/DragonErrorCodeEnum.java
+3
-1
AbstractAlipayStrategy.java
.../channel/alipay/strategy/impl/AbstractAlipayStrategy.java
+3
-0
No files found.
liquidnet-bus-api/liquidnet-service-dragon-api/src/main/java/com/liquidnet/service/dragon/constant/DragonErrorCodeEnum.java
View file @
e98ed83d
...
@@ -19,6 +19,8 @@ public enum DragonErrorCodeEnum {
...
@@ -19,6 +19,8 @@ public enum DragonErrorCodeEnum {
TRADE_PARAM_ERROR
(
"PAY0010006"
,
"支付参数异常"
),
TRADE_PARAM_ERROR
(
"PAY0010006"
,
"支付参数异常"
),
TRADE_SCAN_ERROR
(
"PAY0010011"
,
"用户提供的码错误"
),
TRADE_ERROR_NOT_EXISTS
(
"PAY0010007"
,
"订单不存在!"
),
TRADE_ERROR_NOT_EXISTS
(
"PAY0010007"
,
"订单不存在!"
),
TRADE_ERROR_HAS_PAID
(
"PAY0010008"
,
"订单已经支付成功!"
),
TRADE_ERROR_HAS_PAID
(
"PAY0010008"
,
"订单已经支付成功!"
),
...
@@ -33,7 +35,7 @@ public enum DragonErrorCodeEnum {
...
@@ -33,7 +35,7 @@ public enum DragonErrorCodeEnum {
TRADE_DOUYINPAY_SIGN_ERROR
(
"PAY0030001"
,
"抖音签名异常!"
),
TRADE_DOUYINPAY_SIGN_ERROR
(
"PAY0030001"
,
"抖音签名异常!"
),
TRADE_DOUYINPAY_QUERY_ERROR
(
"PAY0030002"
,
"抖音查询支付订单异常!"
),
TRADE_DOUYINPAY_QUERY_ERROR
(
"PAY0030002"
,
"抖音查询
throw new LiquidnetServiceException(DragonErrorCodeEnum.TRADE_PARAM_ERROR.getCode(),DragonErrorCodeEnum.TRADE_PARAM_ERROR.getMessage());
支付订单异常!"
),
TRADE_UNIONPAY_SIGN_ERROR
(
"PAY0040001"
,
"银联签名异常!"
),
TRADE_UNIONPAY_SIGN_ERROR
(
"PAY0040001"
,
"银联签名异常!"
),
...
...
liquidnet-bus-service/liquidnet-service-dragon/liquidnet-service-dragon-impl/src/main/java/com/liquidnet/service/dragon/channel/alipay/strategy/impl/AbstractAlipayStrategy.java
View file @
e98ed83d
...
@@ -58,6 +58,9 @@ public abstract class AbstractAlipayStrategy implements IAlipayStrategy {
...
@@ -58,6 +58,9 @@ public abstract class AbstractAlipayStrategy implements IAlipayStrategy {
Map
<
String
,
Object
>
result
=
this
.
executePay
(
alipayTradePayReq
);
Map
<
String
,
Object
>
result
=
this
.
executePay
(
alipayTradePayReq
);
// log.info("dragonPay:alipay:"+dragonPayBaseReqDto.getDeviceFrom()+" response xmlStr: {} ", JSON.toJSONString(result));
// log.info("dragonPay:alipay:"+dragonPayBaseReqDto.getDeviceFrom()+" response xmlStr: {} ", JSON.toJSONString(result));
log
.
info
(
"alipay-dragonPay->耗时:{}"
,(
System
.
currentTimeMillis
()
-
startTime
)+
"毫秒"
);
log
.
info
(
"alipay-dragonPay->耗时:{}"
,(
System
.
currentTimeMillis
()
-
startTime
)+
"毫秒"
);
if
(
null
!=
result
.
get
(
"code"
)&&
result
.
get
(
"code"
).
toString
().
equals
(
"40004"
)){
return
null
;
}
//拼接返回参数
//拼接返回参数
DragonPayBaseRespDto
respDto
=
buildCommonRespDto
(
dragonPayBaseReqDto
);
DragonPayBaseRespDto
respDto
=
buildCommonRespDto
(
dragonPayBaseReqDto
);
respDto
=
this
.
buildResponseDto
(
respDto
,
result
);
respDto
=
this
.
buildResponseDto
(
respDto
,
result
);
...
...
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