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
0697a94a
Commit
0697a94a
authored
Jan 11, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
71140e02
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
igirl-web/app/base/utils/restClient.js
+1
-0
igirl-web/test2.js
+6
-8
No files found.
igirl-web/app/base/utils/restClient.js
View file @
0697a94a
...
...
@@ -23,6 +23,7 @@ class RestClient {
var
data
=
JSON
.
stringify
(
subData
);
var
cmd
=
this
.
cmdPostPattern
.
replace
(
/
\{
data
\}
/g
,
data
).
replace
(
/
\{
url
\}
/g
,
url
);
cmd
=
cmd
.
replace
(
/,null/g
,
""
);
return
cmd
;
}
FetchPostCmd2
(
subData
,
url
)
{
...
...
igirl-web/test2.js
View file @
0697a94a
var
fs
=
require
(
"fs"
);
var
browserify
=
require
(
"browserify"
);
var
babelify
=
require
(
"babelify"
);
browserify
(
"/home/jy/dev/OMC/igirl-web/app/front/vues/allie/base/backbtn.vue"
)
.
transform
(
babelify
,
{
presets
:
[
"@babel/preset-env"
]})
.
bundle
()
.
pipe
(
fs
.
createWriteStream
(
"./vue2.js"
));
\ No newline at end of file
var
x
=
`
curl --user admines:adminGSBes. -k -H 'Content-type: application/json' -d '{"query":{"bool":{"must":[{"match":{"filing_name":"5G"}},null]}},"from":0,"size":1,"aggregations":{"types":{"terms":{"field":"country_name","size":20,"order":{"_count":"desc"}}}}}' http://43.247.184.94:9200/bigdata_patent_op/_search
`
;
var
m
=
x
.
replace
(
/,null/g
,
""
);
console
.
log
(
m
);
\ No newline at end of file
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