记得上下班打卡 | 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
1220b58f
Commit
1220b58f
authored
Feb 18, 2022
by
zhengfuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改支付。
parent
50101c2b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
DragonConstant.java
...com/liquidnet/service/dragon/constant/DragonConstant.java
+2
-0
PayChannelStrategyAlipayImpl.java
...n/channel/strategy/impl/PayChannelStrategyAlipayImpl.java
+10
-0
No files found.
liquidnet-bus-api/liquidnet-service-dragon-api/src/main/java/com/liquidnet/service/dragon/constant/DragonConstant.java
View file @
1220b58f
...
...
@@ -179,9 +179,11 @@ public class DragonConstant {
PAYMENT_TYPE_WAP_ALIPAY
(
"WAPALIPAY"
,
"alipay"
,
"wap"
,
"手机网页内支付宝支付"
),
PAYMENT_TYPE_WAP_WEPAY
(
"WAPWEPAY"
,
"wepay"
,
"wap"
,
"手机网页调起微信支付"
),
PAYMENT_TYPE_WEB_ALIPAY
(
"WEBALIPAY"
,
"alipay"
,
"web"
,
"电脑网页内支付宝即时到账支付"
),
PAYMENT_TYPE_MICROPAY_ALIPAY
(
"MICROPAYALIPAY"
,
"alipay"
,
"micropay"
,
"支付宝扫码枪支付"
),
PAYMENT_TYPE_WEB_WEPAY
(
"WEBWEPAY"
,
"wepay"
,
"web"
,
"电脑网页内微信二维码支付,用户打开微信扫码支付"
),
PAYMENT_TYPE_JS_WEPAY
(
"JSWEPAY"
,
"wepay"
,
"js"
,
"微信内网页、微信公众号"
),
PAYMENT_TYPE_APPLET_WEPAY
(
"APPLETWEPAY"
,
"wepay"
,
"applet"
,
"微信小程序"
),
PAYMENT_TYPE_MICROPAY_WEPAY
(
"MICROPAYWEPAY"
,
"wepay"
,
"micropay"
,
"微信扫码枪支付"
),
PAYMENT_TYPE_APPLET_DOUYINPAY
(
"APPLETDOUYINPAY"
,
"douyinpay"
,
"applet"
,
"抖音小程序"
),
PAYMENT_TYPE_WAP_UNIONPAY
(
"WAPUNIONPAY"
,
"unionpay"
,
"wap"
,
"银联wap支付"
),
PAYMENT_TYPE_APP_UNIONPAY
(
"APPUNIONPAY"
,
"unionpay"
,
"wap"
,
"银联wap支付"
);
...
...
liquidnet-bus-service/liquidnet-service-dragon/liquidnet-service-dragon-impl/src/main/java/com/liquidnet/service/dragon/channel/strategy/impl/PayChannelStrategyAlipayImpl.java
View file @
1220b58f
...
...
@@ -146,6 +146,9 @@ public class PayChannelStrategyAlipayImpl extends AbstractPayChannelStrategyImpl
@Override
public
DragonPayOrderQueryRespDto
checkOrderStatus
(
String
code
)
{
/* DragonOrdersDto ordersDto = dataUtils.getPayOrderByCode(code);
DragonPayOrderQueryRespDto respDto = alipayStrategyContext.getStrategy(DragonConstant.PayTypeEnum.getEnumByCode(ordersDto.getPaymentType()).getDeviceFrom()).checkOrderStatus(code);
*/
DragonOrdersDto
ordersDto
=
dataUtils
.
getPayOrderByCode
(
code
);
Map
<
String
,
Object
>
resultMap
=
alipayBiz
.
tradeQuery
(
code
);
DragonPayOrderQueryRespDto
respDto
=
dragonPayBiz
.
buildPayOrderQueryRespDto
(
ordersDto
);
...
...
@@ -154,8 +157,14 @@ public class PayChannelStrategyAlipayImpl extends AbstractPayChannelStrategyImpl
if
(
AlipayConstant
.
AlipayTradeStateEnum
.
TRADE_SUCCESS
.
getCode
().
equals
(
resultMap
.
get
(
"tradeStatus"
))
||
AlipayConstant
.
AlipayTradeStateEnum
.
TRADE_FINISHED
.
getCode
().
equals
(
resultMap
.
get
(
"tradeStatus"
)))
{
respDto
.
setStatus
(
Integer
.
valueOf
(
DragonConstant
.
PayStatusEnum
.
STATUS_PAID
.
getCode
()));
if
(
ordersDto
.
getPaymentType
().
equals
(
DragonConstant
.
PayTypeEnum
.
PAYMENT_TYPE_MICROPAY_ALIPAY
.
getCode
())){
this
.
completeSuccessOrder
(
ordersDto
,
resultMap
.
get
(
"trade_no"
).
toString
(),
LocalDateTime
.
now
(),
resultMap
.
toString
());
}
}
else
{
respDto
.
setStatus
(
Integer
.
valueOf
(
DragonConstant
.
PayStatusEnum
.
STATUS_PAY_FAIL
.
getCode
()));
if
(
ordersDto
.
getPaymentType
().
equals
(
DragonConstant
.
PayTypeEnum
.
PAYMENT_TYPE_MICROPAY_ALIPAY
.
getCode
())){
this
.
completeFailOrder
(
ordersDto
,
resultMap
.
toString
());
}
}
// throw new LiquidnetServiceException(DragonErrorCodeEnum.TRADE_ALIPAY_QUERY_ERROR.getCode(),DragonErrorCodeEnum.TRADE_ALIPAY_QUERY_ERROR.getMessage());
}
else
if
(
"40004"
.
equals
(
resultMap
.
get
(
"code"
))&&
"ACQ.TRADE_NOT_EXIST"
.
equalsIgnoreCase
(
resultMap
.
get
(
"subCode"
).
toString
())){
...
...
@@ -165,4 +174,5 @@ public class PayChannelStrategyAlipayImpl extends AbstractPayChannelStrategyImpl
}
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