Commit e7c9475f authored by 张欣's avatar 张欣

企查查接口修改

parent 2393d6a2
...@@ -31,7 +31,7 @@ public class QccController { ...@@ -31,7 +31,7 @@ public class QccController {
* @param keyword * @param keyword
* @return * @return
*/ */
@GetMapping("/qiyeSearch") @PostMapping("/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
*/ */
@GetMapping("/qiyePartnerInfoQuery") @PostMapping("/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
*/ */
@GetMapping("/personHisOperCompany") @PostMapping("/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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment