Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xyqb-user2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
head_group
xyqb-user2
Commits
6d1cef7a
Commit
6d1cef7a
authored
Jun 22, 2017
by
技术部—现金贷—曾丽宾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付中心错误反馈
parent
a3e391be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
UserQueryLogController.java
.../controller/external/queryLog/UserQueryLogController.java
+9
-3
No files found.
src/main/java/cn/quantgroup/xyqb/controller/external/queryLog/UserQueryLogController.java
View file @
6d1cef7a
...
@@ -306,17 +306,22 @@ public class UserQueryLogController {
...
@@ -306,17 +306,22 @@ public class UserQueryLogController {
private
HashMap
<
String
,
String
>
getBankCardsByPhoneNos
(
List
<
String
>
phoneNos
){
private
HashMap
<
String
,
String
>
getBankCardsByPhoneNos
(
List
<
String
>
phoneNos
){
//String phoneNoStr= JSON.toJSONString(phoneNos);
//String phoneNoStr= JSON.toJSONString(phoneNos);
String
phoneNoStr
=
new
Gson
().
toJson
(
phoneNos
);
//phoneNos
List
<
String
>
phoneNoss
=
new
ArrayList
<
String
>();
phoneNoss
.
add
(
"1582223"
);
String
phoneNoStr
=
new
Gson
().
toJson
(
phoneNoss
);
String
data
=
""
;
String
data
=
""
;
String
sign
=
""
;
String
sign
=
""
;
HashMap
<
String
,
String
>
phonesMap
=
new
HashMap
<
String
,
String
>();
try
{
try
{
data
=
RSA
.
encrypt
(
phoneNoStr
,
publicKey
);
data
=
RSA
.
encrypt
(
phoneNoStr
,
publicKey
);
sign
=
MD5Util
.
build
(
data
);
sign
=
MD5Util
.
build
(
data
);
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
LOGGER
.
info
(
"参数加密异常"
);
LOGGER
.
info
(
"参数加密异常"
);
phonesMap
.
put
(
"errorMsg"
,
"参数加密异常"
);
return
null
;
return
null
;
}
}
HashMap
<
String
,
String
>
phonesMap
=
new
HashMap
<
String
,
String
>();
HashMap
<
String
,
String
>
parameters
=
new
HashMap
<>();
HashMap
<
String
,
String
>
parameters
=
new
HashMap
<>();
parameters
.
put
(
"data"
,
data
);
parameters
.
put
(
"data"
,
data
);
...
@@ -350,7 +355,8 @@ public class UserQueryLogController {
...
@@ -350,7 +355,8 @@ public class UserQueryLogController {
LOGGER
.
info
(
"签名校验失败!"
);
LOGGER
.
info
(
"签名校验失败!"
);
}
}
}
else
{
}
else
{
phonesMap
.
put
(
"errorMsg"
,
"从支付中心接口返回data为null"
);
phonesMap
.
put
(
"errorMsg"
,
obj
.
get
(
"msg"
).
getAsString
());
LOGGER
.
info
(
"从支付中心接口返回data为null"
);
LOGGER
.
info
(
"从支付中心接口返回data为null"
);
}
}
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
...
...
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