Commit 0d8a0c3e by 王勇飞

gyq

parent cb26e145
......@@ -9,7 +9,7 @@ class PatentQueryAPI extends APIBase {
this.wpatentsearchApi = system.getObject("api.patent.wordpatentsearch");
this.wpatentaggApi = system.getObject("api.patent.wpatentaggregations");
this.copyrightApi = system.getObject("api.patent.copyrightsearch");
this.chinapatentsearchApi = system.getObject("api.patent.chinapatentsearch");
}
/**
......@@ -65,17 +65,20 @@ class PatentQueryAPI extends APIBase {
opResult = await this.copyrightApi.worksDetailsByregNum(action_body);
break;
case "CommomSearchbyTitle": //根据标题查询聚合
opResult = await this.chinapatentsearchApi.CommomSearchbyTitle(action_body);
opResult = await this.cpatentsearchApi.CommomSearchbyTitle(action_body);
break;
case "CommomSearchbyFilingno": //根据申请号查询聚合
opResult = await this.chinapatentsearchApi.CommomSearchbyFilingno(action_body);
opResult = await this.cpatentsearchApi.CommomSearchbyFilingno(action_body);
break;
case "CommomSearchbyPubno": //根据公开号查询聚合
opResult = await this.chinapatentsearchApi.CommomSearchbyPubno(action_body);
opResult = await this.cpatentsearchApi.CommomSearchbyPubno(action_body);
break;
case "CommomSearchbyInventor": //根据发明人查询聚合
opResult = await this.chinapatentsearchApi.CommomSearchbyInventor(action_body);
opResult = await this.cpatentsearchApi.CommomSearchbyInventor(action_body);
break;
case "AffairsearchbyFilingno":
opResult = await this.caffairsearchApi.SearchbyFilingno(action_body);
break;
default:
opResult = system.getResult(null, "action_type参数错误");
break;
......@@ -87,12 +90,12 @@ module.exports = PatentQueryAPI;
// var tesk = new PatentQueryAPI();
// var parm = {
// actionType:"paShortListByApplicantName",
// actionBody:{applicant_name:"中国专利信息中心"}
// actionType:"AffairsearchbyFilingno",
// actionBody:{filingno:"201410451887"}
// };
// tesk.springBoard(parm).then(function(result){
// console.log(result);
// console.log(result.data.data[0]);
// console.log(JSON.stringify(result));
// //console.log(result.data.data[0]);
// }).catch(function(e){
// console.log(e);
// });
\ No newline at end of file
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