Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jiwei-api
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
马天浩
jiwei-api
Commits
e7c9475f
Commit
e7c9475f
authored
Aug 26, 2020
by
张欣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企查查接口修改
parent
2393d6a2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
QccController.java
.../java/com/mth/requestsecret/controller/QccController.java
+5
-4
No files found.
src/main/java/com/mth/requestsecret/controller/QccController.java
View file @
e7c9475f
...
@@ -31,7 +31,7 @@ public class QccController {
...
@@ -31,7 +31,7 @@ public class QccController {
* @param keyword
* @param keyword
* @return
* @return
*/
*/
@
Ge
tMapping
(
"/qiyeSearch"
)
@
Pos
tMapping
(
"/qiyeSearch"
)
public
ResponseEntity
<
String
>
qiyeSearch
(
@RequestParam
String
keyword
)
throws
Exception
{
public
ResponseEntity
<
String
>
qiyeSearch
(
@RequestParam
String
keyword
)
throws
Exception
{
String
interfaceUrl
=
"http://api.qichacha.com/ECIV4/Search"
;
String
interfaceUrl
=
"http://api.qichacha.com/ECIV4/Search"
;
HttpHead
reqHeader
=
new
HttpHead
();
HttpHead
reqHeader
=
new
HttpHead
();
...
@@ -50,7 +50,7 @@ public class QccController {
...
@@ -50,7 +50,7 @@ public class QccController {
* @param keyword
* @param keyword
* @return
* @return
*/
*/
@
Ge
tMapping
(
"/qiyePartnerInfoQuery"
)
@
Pos
tMapping
(
"/qiyePartnerInfoQuery"
)
public
ResponseEntity
<
String
>
qiyePartnerInfoQuery
(
@RequestParam
String
keyword
)
throws
Exception
{
public
ResponseEntity
<
String
>
qiyePartnerInfoQuery
(
@RequestParam
String
keyword
)
throws
Exception
{
String
interfaceUrl
=
"http://api.qichacha.com/ECIPartner/GetList"
;
String
interfaceUrl
=
"http://api.qichacha.com/ECIPartner/GetList"
;
HttpHead
reqHeader
=
new
HttpHead
();
HttpHead
reqHeader
=
new
HttpHead
();
...
@@ -60,7 +60,8 @@ public class QccController {
...
@@ -60,7 +60,8 @@ public class QccController {
String
reqUri
=
interfaceUrl
.
concat
(
"?key="
).
concat
(
appkey
).
concat
(
"&searchKey="
).
concat
(
keyword
);
String
reqUri
=
interfaceUrl
.
concat
(
"?key="
).
concat
(
appkey
).
concat
(
"&searchKey="
).
concat
(
keyword
);
String
resultJson
=
QccHttpUtil
.
httpGet
(
reqUri
,
reqHeader
.
getAllHeaders
());
String
resultJson
=
QccHttpUtil
.
httpGet
(
reqUri
,
reqHeader
.
getAllHeaders
());
log
.
info
(
"企查查企业股东信息查询接口返回结果为:"
+
resultJson
);
log
.
info
(
"企查查企业股东信息查询接口返回结果为:"
+
resultJson
);
return
new
ResponseEntity
<
String
>(
resultJson
,
HttpStatus
.
OK
);
ResponseEntity
<
String
>
result
=
new
ResponseEntity
<
String
>(
resultJson
,
HttpStatus
.
OK
);
return
result
;
}
}
...
@@ -70,7 +71,7 @@ public class QccController {
...
@@ -70,7 +71,7 @@ public class QccController {
* @param personName 人员姓名
* @param personName 人员姓名
* @return
* @return
*/
*/
@
Ge
tMapping
(
"/personHisOperCompany"
)
@
Pos
tMapping
(
"/personHisOperCompany"
)
public
ResponseEntity
<
String
>
personHisOperCompany
(
@RequestParam
String
searchKey
,
@RequestParam
String
personName
)
throws
Exception
{
public
ResponseEntity
<
String
>
personHisOperCompany
(
@RequestParam
String
searchKey
,
@RequestParam
String
personName
)
throws
Exception
{
String
interfaceUrl
=
"http://api.qichacha.com/PersonHisOperCompany/GetList"
;
String
interfaceUrl
=
"http://api.qichacha.com/PersonHisOperCompany/GetList"
;
HttpHead
reqHeader
=
new
HttpHead
();
HttpHead
reqHeader
=
new
HttpHead
();
...
...
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