Commit ce409fa6 by 王勇飞

gyq

parent f2feaefc
......@@ -1049,7 +1049,7 @@ class ChinaPatentSearchApi extends ApiBase {
}
},
"from": 0,
"size": 200
"size": 50
};
for (var x in obj) {
params.query.bool.must.push(obj[x]);
......
......@@ -39,7 +39,7 @@ class PatentycCtl extends CtlBase {
try{
var result = await this.service.ezReportUploadData(obj);
if (result){
return System.getResult2(result);
return System.getResult2(result);//"result":true,"uid":"735f9cd0-c103-11ea-9ecd-1d1c3e85a974"}
}
else{
return System.getErrResult2("返回结果为空");
......@@ -54,8 +54,14 @@ class PatentycCtl extends CtlBase {
async ReadyReport(pobj,obj,req){
if (obj.uid && obj.uid != 'undefined'){
try{
var result = await this.service.ReadyReport(obj);
return System.getResult2(result);
var result = await this.service.ezReadyReport(obj);
if (result == 1){
return System.getResult2(result);
}
else{
return System.getResult2("报告尚未生成");
}
}
catch(error){
return System.getErrResult2(error);
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -11,7 +11,9 @@ class ExecClient {
async exec(cmd) {
//await后面表达式返回的promise对象,是then的语法糖,await返回then函数的返回值
//异常需要try/catch自己捕获或外部catch捕获
const {stdout, stderr} = await exec(cmd);
const {stdout, stderr} = await exec(cmd,{
maxBuffer: 40960 * 1024
});
return {stdout, stderr};
}
......@@ -49,7 +51,9 @@ class ExecClient {
async execGet(subData, url) {
let cmd = this.FetchGetCmd(subData, url);
console.log("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@");
console.log(cmd);
console.log("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@");
var result = await this.exec(cmd);
return result;
}
......
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