Commit e7c9475f authored by 张欣's avatar 张欣

企查查接口修改

parent 2393d6a2
......@@ -31,7 +31,7 @@ public class QccController {
* @param keyword
* @return
*/
@GetMapping("/qiyeSearch")
@PostMapping("/qiyeSearch")
public ResponseEntity<String> qiyeSearch(@RequestParam String keyword) throws Exception {
String interfaceUrl = "http://api.qichacha.com/ECIV4/Search";
HttpHead reqHeader = new HttpHead();
......@@ -50,7 +50,7 @@ public class QccController {
* @param keyword
* @return
*/
@GetMapping("/qiyePartnerInfoQuery")
@PostMapping("/qiyePartnerInfoQuery")
public ResponseEntity<String> qiyePartnerInfoQuery(@RequestParam String keyword) throws Exception {
String interfaceUrl = "http://api.qichacha.com/ECIPartner/GetList";
HttpHead reqHeader = new HttpHead();
......@@ -60,7 +60,8 @@ public class QccController {
String reqUri = interfaceUrl.concat("?key=").concat(appkey).concat("&searchKey=").concat(keyword);
String resultJson = QccHttpUtil.httpGet(reqUri, reqHeader.getAllHeaders());
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 {
* @param personName 人员姓名
* @return
*/
@GetMapping("/personHisOperCompany")
@PostMapping("/personHisOperCompany")
public ResponseEntity<String> personHisOperCompany(@RequestParam String searchKey,@RequestParam String personName) throws Exception {
String interfaceUrl = "http://api.qichacha.com/PersonHisOperCompany/GetList";
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