记得上下班打卡 | 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
b6daacfd
Commit
b6daacfd
authored
Jul 29, 2022
by
zhengfuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改超时异常处理
parent
86e448d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
AbstractWepayStrategy.java
...on/channel/wepay/strategy/impl/AbstractWepayStrategy.java
+18
-4
No files found.
liquidnet-bus-service/liquidnet-service-dragon/liquidnet-service-dragon-impl/src/main/java/com/liquidnet/service/dragon/channel/wepay/strategy/impl/AbstractWepayStrategy.java
View file @
b6daacfd
...
...
@@ -122,9 +122,21 @@ public abstract class AbstractWepayStrategy implements IWepayStrategy {
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
log
.
info
(
"微信预支付报错{}"
,
e
);
if
(
dragonPayBaseReqDto
.
getDeviceFrom
().
equals
(
DragonConstant
.
DeviceFromEnum
.
MICROPAY
.
getCode
())){
return
timeOutDeal
(
dragonPayBaseReqDto
,
null
);
}
}
return
null
;
}
public
ResponseDto
<
DragonPayBaseRespDto
>
timeOutDeal
(
DragonPayBaseReqDto
dragonPayBaseReqDto
,
WepayPayRespDto
respWepayDto
){
DragonPayBaseRespDto
respPayDto
=
this
.
buildCommonRespDto
(
dragonPayBaseReqDto
,
respWepayDto
);
//构造自定义返回参数
this
.
buildResponseDto
(
respPayDto
,
respWepayDto
);
respPayDto
.
setMsg
(
"等待用户付款"
);
//支付订单持久化
dragonServiceCommonBiz
.
buildPayOrders
(
dragonPayBaseReqDto
,
respPayDto
);
return
ResponseDto
.
success
(
respPayDto
);
}
/**
* 构造公共返回参数
...
...
@@ -138,15 +150,17 @@ public abstract class AbstractWepayStrategy implements IWepayStrategy {
respDto
.
setOrderCode
(
dragonPayBaseReqDto
.
getOrderCode
());
respDto
.
setPayType
(
dragonPayBaseReqDto
.
getPayType
());
DragonPayBaseRespDto
.
PayData
payData
=
new
DragonPayBaseRespDto
.
PayData
();
payData
.
setAppId
(
respWepayDto
.
getAppid
());
payData
.
setNonceStr
(
nonceStr
);
payData
.
setPackages
(
"prepay_id="
+
respWepayDto
.
getPrepayId
());
payData
.
setSignType
(
"MD5"
);
Long
second
=
LocalDateTime
.
now
().
toEpochSecond
(
ZoneOffset
.
of
(
"+8"
));
payData
.
setTimeStamp
(
second
+
""
);
payData
.
setPartnerId
(
respWepayDto
.
getMchId
());
payData
.
setPrepayId
(
respWepayDto
.
getPrepayId
());
respDto
.
setPayData
(
payData
);
if
(
null
!=
respWepayDto
){
payData
.
setAppId
(
respWepayDto
.
getAppid
());
payData
.
setPackages
(
"prepay_id="
+
respWepayDto
.
getPrepayId
());
payData
.
setPartnerId
(
respWepayDto
.
getMchId
());
payData
.
setPrepayId
(
respWepayDto
.
getPrepayId
());
}
return
respDto
;
}
...
...
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