Commit 0d8a0c3e by 王勇飞

gyq

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