Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Jeepay
Commits
6bb11b08
Commit
6bb11b08
authored
Aug 21, 2017
by
jmdhappy
Browse files
修复保存支付宝渠道私钥+号转空格的bug
parent
dac8dc32
Changes
1
Hide whitespace changes
Inline
Side-by-side
xxpay-mgr/src/main/java/org/xxpay/mgr/controller/PayChannelController.java
View file @
6bb11b08
...
...
@@ -76,12 +76,18 @@ public class PayChannelController {
if
(
PayConstant
.
PAY_CHANNEL_ALIPAY_MOBILE
.
equals
(
channelId
)
||
PayConstant
.
PAY_CHANNEL_ALIPAY_PC
.
equals
(
channelId
)
||
PayConstant
.
PAY_CHANNEL_ALIPAY_WAP
.
equals
(
channelId
))
{
JSONObject
paramObj
=
po
.
getJSONObject
(
"param"
);
paramObj
.
put
(
"private_key"
,
paramObj
.
getString
(
"private_key"
).
replaceAll
(
" "
,
"+"
));
paramObj
.
put
(
"public_key"
,
paramObj
.
getString
(
"public_key"
).
replaceAll
(
" "
,
"+"
));
param
=
paramObj
.
toJSONString
();
JSONObject
paramObj
=
null
;
try
{
paramObj
=
JSON
.
parseObject
(
po
.
getString
(
"param"
));
}
catch
(
Exception
e
)
{
_log
.
info
(
"param is not json"
);
}
if
(
paramObj
!=
null
)
{
paramObj
.
put
(
"private_key"
,
paramObj
.
getString
(
"private_key"
).
replaceAll
(
" "
,
"+"
));
paramObj
.
put
(
"public_key"
,
paramObj
.
getString
(
"public_key"
).
replaceAll
(
" "
,
"+"
));
param
=
paramObj
.
toJSONString
();
}
}
PayChannel
payChannel
=
new
PayChannel
();
Integer
id
=
po
.
getInteger
(
"id"
);
payChannel
.
setChannelId
(
channelId
);
...
...
Write
Preview
Supports
Markdown
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