Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bigdatainterservice
Overview
Overview
Details
Activity
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
曹鹏
bigdatainterservice
Commits
05fde149
Commit
05fde149
authored
May 22, 2019
by
wangling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20190522---wangling---passWord解密
parent
ee2db447
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
src/main/java/com/founder/interservice/gwdq/Controller/GwdqfxtjController.java
+13
-0
No files found.
src/main/java/com/founder/interservice/gwdq/Controller/GwdqfxtjController.java
View file @
05fde149
...
...
@@ -13,6 +13,7 @@ import org.springframework.stereotype.Controller;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.servlet.ModelAndView
;
import
sun.misc.BASE64Decoder
;
import
java.io.UnsupportedEncodingException
;
import
java.util.*
;
...
...
@@ -27,6 +28,18 @@ public class GwdqfxtjController {
@RequestMapping
(
value
=
"/toGwdq"
,
method
=
{
RequestMethod
.
GET
,
RequestMethod
.
POST
})
public
ModelAndView
getGwdq
(
String
asjfsjssj
,
String
asjbh
,
String
userName
,
String
passWord
,
String
sfzh
,
String
userCode
)
{
//passWord解密
byte
[]
b
=
null
;
if
(!
""
.
equals
(
passWord
))
{
BASE64Decoder
decoder
=
new
BASE64Decoder
();
try
{
b
=
decoder
.
decodeBuffer
(
passWord
);
passWord
=
new
String
(
b
,
"utf-8"
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
CloseableHttpClient
httpclient
=
gwdqService
.
getCjxm
(
userName
,
passWord
,
sfzh
,
userCode
);
//response返回的相应实体
UrlEncodedFormEntity
reqEntity
=
null
;
...
...
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