记得上下班打卡 | 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
ae4a9b70
Commit
ae4a9b70
authored
Jul 23, 2021
by
anjiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化支付代码
parent
88cf7656
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
DragonPayBaseReqDto.java
...com/liquidnet/service/dragon/dto/DragonPayBaseReqDto.java
+2
-2
AlipayBiz.java
...iquidnet/service/dragon/channel/alipay/biz/AlipayBiz.java
+1
-1
WepayBiz.java
.../liquidnet/service/dragon/channel/wepay/biz/WepayBiz.java
+2
-2
No files found.
liquidnet-bus-api/liquidnet-service-dragon-api/src/main/java/com/liquidnet/service/dragon/dto/DragonPayBaseReqDto.java
View file @
ae4a9b70
package
com
.
liquidnet
.
service
.
dragon
.
dto
;
package
com
.
liquidnet
.
service
.
dragon
.
dto
;
import
com.
alibaba.fastjson.JSON
;
import
com.
liquidnet.commons.lang.util.JsonUtils
;
import
lombok.Data
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.io.Serializable
;
...
@@ -37,7 +37,7 @@ public class DragonPayBaseReqDto implements Serializable, Cloneable{
...
@@ -37,7 +37,7 @@ public class DragonPayBaseReqDto implements Serializable, Cloneable{
@Override
@Override
public
String
toString
(){
public
String
toString
(){
return
J
SON
.
toJSONString
(
this
);
return
J
sonUtils
.
toJson
(
this
);
}
}
private
static
final
DragonPayBaseReqDto
obj
=
new
DragonPayBaseReqDto
();
private
static
final
DragonPayBaseReqDto
obj
=
new
DragonPayBaseReqDto
();
...
...
liquidnet-bus-service/liquidnet-service-dragon/liquidnet-service-dragon-impl/src/main/java/com/liquidnet/service/dragon/channel/alipay/biz/AlipayBiz.java
View file @
ae4a9b70
...
@@ -143,7 +143,7 @@ public class AlipayBiz{
...
@@ -143,7 +143,7 @@ public class AlipayBiz{
* @return
* @return
*/
*/
public
static
Map
<
String
,
Object
>
tradeQuery
(
String
outTradeNo
)
{
public
static
Map
<
String
,
Object
>
tradeQuery
(
String
outTradeNo
)
{
log
.
info
(
"
======>
支付宝交易查询"
);
log
.
info
(
"
AlipayBiz.tradeQuery-->>
支付宝交易查询"
);
AlipayClient
alipayClient
=
PayAlipayUtils
.
getInstance
().
getHttpClient
();
AlipayClient
alipayClient
=
PayAlipayUtils
.
getInstance
().
getHttpClient
();
SortedMap
<
String
,
Object
>
bizContentMap
=
new
TreeMap
<>();
SortedMap
<
String
,
Object
>
bizContentMap
=
new
TreeMap
<>();
...
...
liquidnet-bus-service/liquidnet-service-dragon/liquidnet-service-dragon-impl/src/main/java/com/liquidnet/service/dragon/channel/wepay/biz/WepayBiz.java
View file @
ae4a9b70
...
@@ -37,8 +37,8 @@ public class WepayBiz{
...
@@ -37,8 +37,8 @@ public class WepayBiz{
* @return
* @return
*/
*/
public
Map
<
String
,
Object
>
tradeQuery
(
String
outTradeNo
,
String
appid
)
{
public
Map
<
String
,
Object
>
tradeQuery
(
String
outTradeNo
,
String
appid
)
{
log
.
info
(
"WepayBiz.tradeQuery-->> request outTradeNo:{} appid:{} "
,
outTradeNo
,
appid
);
Map
<
String
,
Object
>
respMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
respMap
=
new
HashMap
<>();
log
.
info
(
"======>支付宝交易查询"
);
SortedMap
<
String
,
Object
>
paramMap
=
new
TreeMap
<>();
SortedMap
<
String
,
Object
>
paramMap
=
new
TreeMap
<>();
paramMap
.
put
(
"appid"
,
appid
);
paramMap
.
put
(
"appid"
,
appid
);
paramMap
.
put
(
"mch_id"
,
merchantId
);
paramMap
.
put
(
"mch_id"
,
merchantId
);
...
@@ -57,7 +57,7 @@ public class WepayBiz{
...
@@ -57,7 +57,7 @@ public class WepayBiz{
//接受到返回信息
//接受到返回信息
String
xmlStr
=
EntityUtils
.
toString
(
response
.
getEntity
(),
"UTF-8"
);
String
xmlStr
=
EntityUtils
.
toString
(
response
.
getEntity
(),
"UTF-8"
);
EntityUtils
.
consume
(
entity
);
EntityUtils
.
consume
(
entity
);
log
.
info
(
"
dragonPay:wepay:wap
response xmlStr: {} "
,
xmlStr
);
log
.
info
(
"
WepayBiz.tradeQuery-->>
response xmlStr: {} "
,
xmlStr
);
respMap
=
XmlUtil
.
xmlToMap
(
xmlStr
);
respMap
=
XmlUtil
.
xmlToMap
(
xmlStr
);
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
log
.
error
(
e
.
getMessage
());
log
.
error
(
e
.
getMessage
());
...
...
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