记得上下班打卡 | 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
887cb296
Commit
887cb296
authored
Jul 26, 2022
by
zhengfuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改微信和支付宝 扫码问题
parent
199cc589
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
2 deletions
+14
-2
DragonPayBaseRespDto.java
...om/liquidnet/service/dragon/dto/DragonPayBaseRespDto.java
+2
-0
AlipayStrategyMicropayImpl.java
...nnel/alipay/strategy/impl/AlipayStrategyMicropayImpl.java
+4
-0
WepayPayRespDto.java
...et/service/dragon/channel/wepay/resp/WepayPayRespDto.java
+4
-0
AbstractWepayStrategy.java
...on/channel/wepay/strategy/impl/AbstractWepayStrategy.java
+4
-2
No files found.
liquidnet-bus-api/liquidnet-service-dragon-api/src/main/java/com/liquidnet/service/dragon/dto/DragonPayBaseRespDto.java
View file @
887cb296
...
...
@@ -40,6 +40,8 @@ public class DragonPayBaseRespDto implements Serializable {
private
String
productId
;
private
String
msg
;
@Data
@JsonInclude
(
JsonInclude
.
Include
.
NON_NULL
)
...
...
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/dragon/channel/alipay/strategy/impl/AlipayStrategyMicropayImpl.java
View file @
887cb296
...
...
@@ -56,6 +56,10 @@ public class AlipayStrategyMicropayImpl extends AbstractAlipayStrategy {
@Override
DragonPayBaseRespDto
buildResponseDto
(
DragonPayBaseRespDto
payBaseRespDto
,
Map
<
String
,
Object
>
respResult
)
{
// payBaseRespDto.getPayData().setRedirectUrl(alipayGatewayUrl + "?" + respResult.get("body"));
//判断是否成功
if
(
respResult
.
get
(
"code"
)!=
null
&&!
respResult
.
get
(
"code"
).
equals
(
"10000"
)){
payBaseRespDto
.
setMsg
(
respResult
.
get
(
"subMsg"
)==
null
?
""
:
respResult
.
get
(
"subMsg"
).
toString
());
}
return
payBaseRespDto
;
}
}
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/dragon/channel/wepay/resp/WepayPayRespDto.java
View file @
887cb296
...
...
@@ -58,6 +58,10 @@ public class WepayPayRespDto {
private
String
attach
;
@XStreamAlias
(
"time_end"
)
private
String
time_end
;
@XStreamAlias
(
"err_code"
)
private
String
err_code
;
@XStreamAlias
(
"err_code_des"
)
private
String
err_code_des
;
public
static
void
xmlToBean
(){
String
xmlStr
=
"<xml><return_code><![CDATA[SUCCESS]]></return_code>\n"
+
...
...
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/dragon/channel/wepay/strategy/impl/AbstractWepayStrategy.java
View file @
887cb296
...
...
@@ -101,12 +101,14 @@ public abstract class AbstractWepayStrategy implements IWepayStrategy {
throw
new
LiquidnetServiceException
(
DragonErrorCodeEnum
.
TRADE_PARAM_ERROR
.
getCode
(),
DragonErrorCodeEnum
.
TRADE_PARAM_ERROR
.
getMessage
());
}
if
(
WepayConstant
.
WeixinTradeStateEnum
.
SUCCESS
.
getCode
().
equalsIgnoreCase
(
respWepayDto
.
getReturnCode
())){
if
(
WepayConstant
.
WeixinTradeStateEnum
.
SUCCESS
.
getCode
().
equalsIgnoreCase
(
respWepayDto
.
getResultCode
())){
if
(
WepayConstant
.
WeixinTradeStateEnum
.
SUCCESS
.
getCode
().
equalsIgnoreCase
(
respWepayDto
.
getResultCode
())
||
dragonPayBaseReqDto
.
getDeviceFrom
().
equals
(
DragonConstant
.
DeviceFromEnum
.
MICROPAY
.
getCode
())
){
//构造公共返回参数
DragonPayBaseRespDto
respPayDto
=
this
.
buildCommonRespDto
(
dragonPayBaseReqDto
,
respWepayDto
);
//构造自定义返回参数
this
.
buildResponseDto
(
respPayDto
,
respWepayDto
);
if
(!
WepayConstant
.
WeixinTradeStateEnum
.
SUCCESS
.
getCode
().
equalsIgnoreCase
(
respWepayDto
.
getResultCode
())&&
dragonPayBaseReqDto
.
getDeviceFrom
().
equals
(
DragonConstant
.
DeviceFromEnum
.
MICROPAY
.
getCode
()))
{
respPayDto
.
setMsg
(
respWepayDto
.
getErr_code_des
());
}
//支付订单持久化
dragonServiceCommonBiz
.
buildPayOrders
(
dragonPayBaseReqDto
,
respPayDto
);
log
.
info
(
"wepay-->dragonPay--> 耗时:{}"
,(
System
.
currentTimeMillis
()
-
startTimeTotal
)+
"毫秒"
);
...
...
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