Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
ce409fa6
Commit
ce409fa6
authored
Jul 09, 2020
by
王勇飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gyq
parent
f2feaefc
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
4 deletions
+14
-4
ipop-web/app/base/api/impl/chinapatentsearch.js
+1
-1
ipop-web/app/base/controller/impl/patentycCtl.js
+8
-2
ipop-web/app/base/service/impl/patentycSve.js
+0
-0
ipop-web/app/base/utils/execClient.js
+5
-1
No files found.
ipop-web/app/base/api/impl/chinapatentsearch.js
View file @
ce409fa6
...
@@ -1049,7 +1049,7 @@ class ChinaPatentSearchApi extends ApiBase {
...
@@ -1049,7 +1049,7 @@ class ChinaPatentSearchApi extends ApiBase {
}
}
},
},
"from"
:
0
,
"from"
:
0
,
"size"
:
20
0
"size"
:
5
0
};
};
for
(
var
x
in
obj
)
{
for
(
var
x
in
obj
)
{
params
.
query
.
bool
.
must
.
push
(
obj
[
x
]);
params
.
query
.
bool
.
must
.
push
(
obj
[
x
]);
...
...
ipop-web/app/base/controller/impl/patentycCtl.js
View file @
ce409fa6
...
@@ -39,7 +39,7 @@ class PatentycCtl extends CtlBase {
...
@@ -39,7 +39,7 @@ class PatentycCtl extends CtlBase {
try
{
try
{
var
result
=
await
this
.
service
.
ezReportUploadData
(
obj
);
var
result
=
await
this
.
service
.
ezReportUploadData
(
obj
);
if
(
result
){
if
(
result
){
return
System
.
getResult2
(
result
);
return
System
.
getResult2
(
result
);
//"result":true,"uid":"735f9cd0-c103-11ea-9ecd-1d1c3e85a974"}
}
}
else
{
else
{
return
System
.
getErrResult2
(
"返回结果为空"
);
return
System
.
getErrResult2
(
"返回结果为空"
);
...
@@ -54,9 +54,15 @@ class PatentycCtl extends CtlBase {
...
@@ -54,9 +54,15 @@ class PatentycCtl extends CtlBase {
async
ReadyReport
(
pobj
,
obj
,
req
){
async
ReadyReport
(
pobj
,
obj
,
req
){
if
(
obj
.
uid
&&
obj
.
uid
!=
'undefined'
){
if
(
obj
.
uid
&&
obj
.
uid
!=
'undefined'
){
try
{
try
{
var
result
=
await
this
.
service
.
ReadyReport
(
obj
);
var
result
=
await
this
.
service
.
ezReadyReport
(
obj
);
if
(
result
==
1
){
return
System
.
getResult2
(
result
);
return
System
.
getResult2
(
result
);
}
}
else
{
return
System
.
getResult2
(
"报告尚未生成"
);
}
}
catch
(
error
){
catch
(
error
){
return
System
.
getErrResult2
(
error
);
return
System
.
getErrResult2
(
error
);
}
}
...
...
ipop-web/app/base/service/impl/patentycSve.js
View file @
ce409fa6
This source diff could not be displayed because it is too large. You can
view the blob
instead.
ipop-web/app/base/utils/execClient.js
View file @
ce409fa6
...
@@ -11,7 +11,9 @@ class ExecClient {
...
@@ -11,7 +11,9 @@ class ExecClient {
async
exec
(
cmd
)
{
async
exec
(
cmd
)
{
//await后面表达式返回的promise对象,是then的语法糖,await返回then函数的返回值
//await后面表达式返回的promise对象,是then的语法糖,await返回then函数的返回值
//异常需要try/catch自己捕获或外部catch捕获
//异常需要try/catch自己捕获或外部catch捕获
const
{
stdout
,
stderr
}
=
await
exec
(
cmd
);
const
{
stdout
,
stderr
}
=
await
exec
(
cmd
,{
maxBuffer
:
40960
*
1024
});
return
{
stdout
,
stderr
};
return
{
stdout
,
stderr
};
}
}
...
@@ -49,7 +51,9 @@ class ExecClient {
...
@@ -49,7 +51,9 @@ class ExecClient {
async
execGet
(
subData
,
url
)
{
async
execGet
(
subData
,
url
)
{
let
cmd
=
this
.
FetchGetCmd
(
subData
,
url
);
let
cmd
=
this
.
FetchGetCmd
(
subData
,
url
);
console
.
log
(
"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"
);
console
.
log
(
cmd
);
console
.
log
(
cmd
);
console
.
log
(
"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"
);
var
result
=
await
this
.
exec
(
cmd
);
var
result
=
await
this
.
exec
(
cmd
);
return
result
;
return
result
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment