Commit b94edf0b by 王勇飞

gyq

parent f93f43af
......@@ -76,7 +76,7 @@ class PatentycCtl extends CtlBase {
if (obj.companyname && obj.companyname != 'undefined'){
try{
var result = await this.service.competitionAnalysisInfo(obj);
if (result){
if (JSON.stringify(result) != '{}'){
return System.getResult2(result);
}
else{
......@@ -94,10 +94,10 @@ class PatentycCtl extends CtlBase {
}
async competitionAnalysisContex(pobj,obj,req){//竞争分析详细信息
if (obj.company1 && obj.company1 != 'undefined' && obj.company2 && obj.company2 != 'undefined'){
if (obj.company1 && obj.company1 != 'undefined' && obj.company2 && obj.company2 != 'undefined' && obj.keyword1 && obj.keyword1 != 'undefined' && obj.keyword2 && obj.keyword2 ){
try{
var result = await this.service.competitionAnalysisContex(obj);
if (result){
if (JSON.stringify(result) != '{}'){
return System.getResult2(result);
}
else{
......@@ -1430,15 +1430,17 @@ class PatentycCtl extends CtlBase {
}
module.exports = PatentycCtl;
// var task = new PatentycCtl();
// var obj = {
// "companyname": "667b8300-c101-11ea-98dd-3142bd90eec4",
// "company2": "html"
// };
// task.competitionAnalysisInfo({},obj,{}).then(d=>{
// console.log(JSON.stringify(d));
// //console.log(d[0].analyse);
// })
var task = new PatentycCtl();
var obj = {
"company1": "华为技术有限公司",
"company2": "中兴通讯股份有限公司",
"keyword1":"用户设备,通信领域,通信技术,设备发送,指示信息,通信系统,通信方法,设备接收,对应关系,基站发送,终端发送,用户体验,配置信息,请求消息,数据传输方法,用户终端,网络侧,移动终端,通信设备,传输方法",
"keyword2":"用户体验,移动终端,用户设备,相关技术,网络侧,终端发送,用户终端,配置信息,指示信息,请求消息,对应关系,传输方法,基站发送,通信系统,数据传输方法,通信领域,通信技术,设备发送,响应消息,发送方法"
};
task.competitionAnalysisContex({},obj,{}).then(d=>{
console.log(JSON.stringify(d));
//console.log(d[0].analyse);
})
// (async ()=>{
// var task = new PatentycCtl();
......
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