Commit 0697a94a by 蒋勇

d

parent 71140e02
...@@ -23,6 +23,7 @@ class RestClient { ...@@ -23,6 +23,7 @@ class RestClient {
var data = JSON.stringify(subData); var data = JSON.stringify(subData);
var cmd = this.cmdPostPattern.replace(/\{data\}/g, var cmd = this.cmdPostPattern.replace(/\{data\}/g,
data).replace(/\{url\}/g, url); data).replace(/\{url\}/g, url);
cmd = cmd.replace(/,null/g, "");
return cmd; return cmd;
} }
FetchPostCmd2(subData, url) { FetchPostCmd2(subData, url) {
......
var fs=require("fs"); var x=`
var browserify = require("browserify"); 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 babelify = require("babelify"); `;
browserify("/home/jy/dev/OMC/igirl-web/app/front/vues/allie/base/backbtn.vue") var m=x.replace(/,null/g,"");
.transform(babelify, {presets: ["@babel/preset-env"]}) console.log(m);
.bundle() \ No newline at end of file
.pipe(fs.createWriteStream("./vue2.js"));
\ 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