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
3f0b174a
Commit
3f0b174a
authored
May 18, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
1c678940
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
3 deletions
+17
-3
fqboss/app/base/db/metadata/bizs/wx76a324c5d201d1a4/alltrademark.js
+1
-1
fqboss/app/base/utils/execClient.js
+15
-1
fqboss/app/config/settings.js
+1
-1
No files found.
fqboss/app/base/db/metadata/bizs/wx76a324c5d201d1a4/alltrademark.js
View file @
3f0b174a
module
.
exports
=
{
module
.
exports
=
{
"list"
:
{
"list"
:
{
columnMetaData
:
[
columnMetaData
:
[
{
"width"
:
"140"
,
"label"
:
"
订
单号"
,
"prop"
:
"channelOrderNum"
,
"isShowTip"
:
true
,
"isTmpl"
:
false
},
{
"width"
:
"140"
,
"label"
:
"
服务
单号"
,
"prop"
:
"channelOrderNum"
,
"isShowTip"
:
true
,
"isTmpl"
:
false
},
{
"width"
:
"220"
,
"label"
:
"代理号"
,
"prop"
:
"proxyCode"
,
"isShowTip"
:
true
,
"isTmpl"
:
false
},
{
"width"
:
"220"
,
"label"
:
"代理号"
,
"prop"
:
"proxyCode"
,
"isShowTip"
:
true
,
"isTmpl"
:
false
},
{
"width"
:
"230"
,
"label"
:
"申请人"
,
"prop"
:
"applyName"
,
"isShowTip"
:
true
,
"isTmpl"
:
false
},
{
"width"
:
"230"
,
"label"
:
"申请人"
,
"prop"
:
"applyName"
,
"isShowTip"
:
true
,
"isTmpl"
:
false
},
{
"width"
:
"100"
,
"label"
:
"商标号"
,
"prop"
:
"tmRegistNum"
,
"isShowTip"
:
true
,
"isTmpl"
:
false
},
{
"width"
:
"100"
,
"label"
:
"商标号"
,
"prop"
:
"tmRegistNum"
,
"isShowTip"
:
true
,
"isTmpl"
:
false
},
...
...
fqboss/app/base/utils/execClient.js
View file @
3f0b174a
...
@@ -6,6 +6,7 @@ class ExecClient {
...
@@ -6,6 +6,7 @@ class ExecClient {
constructor
()
{
constructor
()
{
// this.cmdPostPattern = "curl -k -H 'Content-type: application/json' -d '{data}' {url}";
// this.cmdPostPattern = "curl -k -H 'Content-type: application/json' -d '{data}' {url}";
this
.
cmdPostPattern
=
"curl --user admines:adminGSBes. -k -H 'Content-type: application/json' -d '{data}' {url}"
;
this
.
cmdPostPattern
=
"curl --user admines:adminGSBes. -k -H 'Content-type: application/json' -d '{data}' {url}"
;
this
.
cmdPostAliPattern
=
"curl --user elastic:'w3OL+51eo*)c=^7' -k -H 'Content-type: application/json' -d '{data}' {url}"
;
this
.
cmdGetPattern
=
"curl -G -X GET '{url}'"
;
this
.
cmdGetPattern
=
"curl -G -X GET '{url}'"
;
this
.
cmdPostTK
=
"curl -k -H 'Content-type: application/json' -H 'token:{tk}' -H 'request-id:{requestId}' -d '{data}' {url}"
;
this
.
cmdPostTK
=
"curl -k -H 'Content-type: application/json' -H 'token:{tk}' -H 'request-id:{requestId}' -d '{data}' {url}"
;
}
}
...
@@ -34,7 +35,7 @@ class ExecClient {
...
@@ -34,7 +35,7 @@ class ExecClient {
maxBuffer
:
1024
*
1024
*
15
maxBuffer
:
1024
*
1024
*
15
});
});
if
(
result
.
stdout
)
{
if
(
result
.
stdout
)
{
return
typeof
(
result
.
stdout
)
==
"string"
?
JSON
.
parse
(
result
.
stdout
)
:
result
.
stdout
;
return
typeof
(
result
.
stdout
)
==
"string"
?
JSON
.
parse
(
result
.
stdout
)
:
result
.
stdout
;
}
else
{
}
else
{
return
null
;
return
null
;
}
}
...
@@ -51,8 +52,21 @@ class ExecClient {
...
@@ -51,8 +52,21 @@ class ExecClient {
data
).
replace
(
/
\{
url
\}
/g
,
url
).
replace
(
/
\{
tk
\}
/g
,
token
).
replace
(
/
\{
requestId
\}
/g
,
requestId
);
data
).
replace
(
/
\{
url
\}
/g
,
url
).
replace
(
/
\{
tk
\}
/g
,
token
).
replace
(
/
\{
requestId
\}
/g
,
requestId
);
return
cmd
;
return
cmd
;
}
}
FetchPostAliCmd
(
subData
,
url
)
{
var
data
=
JSON
.
stringify
(
subData
);
var
cmd
=
this
.
cmdPostAliPattern
.
replace
(
/
\{
data
\}
/g
,
data
).
replace
(
/
\{
url
\}
/g
,
url
);
console
.
log
(
cmd
);
return
cmd
;
}
async
execPost
(
subData
,
url
)
{
async
execPost
(
subData
,
url
)
{
//从成阿里尼斯数据
if
(
url
===
"http://es-cn-zz11nl9y20001gczg.public.elasticsearch.aliyuncs.com:9200/bigdata_bdc_gsb_tm_ncl/_search"
)
{
let
cmd
=
this
.
FetchPostAliCmd
(
subData
,
url
);
var
result
=
await
this
.
exec
(
cmd
);
return
result
;
}
//阿里查询尼斯
let
cmd
=
this
.
FetchPostCmd
(
subData
,
url
);
let
cmd
=
this
.
FetchPostCmd
(
subData
,
url
);
var
result
=
await
this
.
exec
(
cmd
);
var
result
=
await
this
.
exec
(
cmd
);
return
result
;
return
result
;
...
...
fqboss/app/config/settings.js
View file @
3f0b174a
...
@@ -173,7 +173,7 @@ var settings = {
...
@@ -173,7 +173,7 @@ var settings = {
return
settings
.
reqEsAddr
()
+
"bigdata_business_gsb_tm_change_business/_search"
;
return
settings
.
reqEsAddr
()
+
"bigdata_business_gsb_tm_change_business/_search"
;
},
},
nclUrl
:
function
()
{
nclUrl
:
function
()
{
return
settings
.
reqEsAddr
()
+
"bigdata_bdc_gsb_tm_ncl/_search"
;
return
"http://es-cn-zz11nl9y20001gczg.public.elasticsearch.aliyuncs.com:9200/"
+
"bigdata_bdc_gsb_tm_ncl/_search"
;
},
},
opLogUrl
:
function
()
{
opLogUrl
:
function
()
{
return
settings
.
reqEsAddr
()
+
"fqboss_op_log/_doc?pretty"
;
return
settings
.
reqEsAddr
()
+
"fqboss_op_log/_doc?pretty"
;
...
...
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