Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-support-rlwx
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
rl
hls-support-rlwx
Commits
b846c240
Commit
b846c240
authored
Apr 24, 2022
by
5359
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取支付二维码接口代码调整
parent
91385585
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
HclcCmbPolyServiceImpl.java
...com/hand/app/cmb/service/impl/HclcCmbPolyServiceImpl.java
+2
-5
No files found.
core/src/main/java/com/hand/app/cmb/service/impl/HclcCmbPolyServiceImpl.java
View file @
b846c240
...
...
@@ -147,7 +147,7 @@ public class HclcCmbPolyServiceImpl implements HclcCmbPolyService {
logger
.
info
(
"发送收款码申请请求,请求参数: {}"
,
mapper
.
writeValueAsString
(
apiHeader
));
try
{
// 发送HTTP post请求
response
=
Utils
.
post
String
(
url
,
signResult
,
apiHeader
);
response
=
Utils
.
post
ForEntity
(
url
,
signResult
,
apiHeader
);
//处理接口日志
logger
.
info
(
"收款码申请返回结果:"
+
mapper
.
writeValueAsString
(
response
));
...
...
@@ -382,7 +382,7 @@ public class HclcCmbPolyServiceImpl implements HclcCmbPolyService {
BigDecimal
b1
=
new
BigDecimal
(
Double
.
toString
(
100
));
requestTransactionParams
.
put
(
"txnAmt"
,
a1
.
multiply
(
b1
).
stripTrailingZeros
().
toPlainString
());
//交易金额,单位为分(必传)
requestTransactionParams
.
put
(
"currencyCode"
,
currencyCode
);
//交易币种,默认156,目前只支持人民币(156)
requestTransactionParams
.
put
(
"body"
,
"聚合支付测试"
);
//商户号(必传)
//
requestTransactionParams.put("body", "聚合支付测试"); //商户号(必传)
//商户保留域
JSONObject
mchReserved
=
new
JSONObject
();
...
...
@@ -396,9 +396,6 @@ public class HclcCmbPolyServiceImpl implements HclcCmbPolyService {
//对待加签内容进行排序拼接
String
signContent
=
SignatureUtil
.
getSignContent
(
requestPublicParams
);
//签名内容
logger
.
info
(
"签名内容:"
+
signContent
);
//加签
requestPublicParams
.
put
(
"sign"
,
SM2Util
.
sm2Sign
(
signContent
,
privateKey
));
...
...
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