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
6301c103
Commit
6301c103
authored
Feb 25, 2021
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
易名
parent
29ff8d65
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
1 deletions
+38
-1
center-channel/app/base/service/impl/common/baseCenterOrderSve.js
+0
-0
center-channel/app/base/service/impl/common/signSve.js
+14
-1
center-channel/app/base/utils/execClient.js
+17
-0
center-channel/app/config/settings.js
+7
-0
No files found.
center-channel/app/base/service/impl/common/baseCenterOrderSve.js
View file @
6301c103
This diff is collapsed.
Click to expand it.
center-channel/app/base/service/impl/common/signSve.js
View file @
6301c103
...
...
@@ -176,6 +176,18 @@ module.exports = SignService;
// }
// }
// task.createSign(obj,"7cbb892450174167b5c7e01we4717z51").then(d=>{
// var obj={
// "bizId": "biz_ename_1614061894_test",
// "isDirectBuy": 0,
// "orderNo": "trade_ename_1614061894_test",
// "phone": "18506015665",
// "userName": "张三",
// "companyName": "测试有限公司2",
// "description": "测试11111111",
// "area": "1",
// "price": "1100",
// "consultType": "5"
// };
// task.createSign(obj,"5cdd926122894160o1q1e34us4738v76").then(d=>{
// console.log(d,"!!!!!!!!!!!!!!!!!!!!!!!!!!");
// });
\ No newline at end of file
center-channel/app/base/utils/execClient.js
View file @
6301c103
...
...
@@ -18,6 +18,10 @@ class ExecClient {
this
.
cmdBaiduPostPattern
=
"curl -k -H 'Content-type: application/json' -H 'Authorization: {Authorization}' -d '{data}' {url}"
;
this
.
cmdGetpatternToken
=
"curl -G -k -H 'authorization:{token}' -d '{data}' {url}"
;
//易名
this
.
cmdEnamePostPattern
=
"curl -k -H 'Content-type: application/json' -d '{data}' {url}"
;
}
getUUID
()
{
var
uuid
=
uuidv4
();
...
...
@@ -60,6 +64,14 @@ class ExecClient {
console
.
log
(
cmd
);
return
cmd
;
}
FetchEnamePostCmd
(
subData
,
url
)
{
var
data
=
JSON
.
stringify
(
subData
);
var
cmd
=
this
.
cmdEnamePostPattern
.
replace
(
/
\{
data
\}
/g
,
data
).
replace
(
/
\{
url
\}
/g
,
url
);
console
.
log
(
cmd
);
return
cmd
;
}
cmdEnamePostPattern
FetchPushDataPostCmd
(
subData
,
url
,
token
,
requestId
)
{
var
requestId
=
requestId
||
this
.
getUUID
();
var
data
=
JSON
.
stringify
(
subData
);
...
...
@@ -90,6 +102,11 @@ class ExecClient {
var
result
=
await
this
.
exec
(
cmd
);
return
result
;
}
async
execEnamePost
(
subData
,
url
)
{
let
cmd
=
this
.
FetchEnamePostCmd
(
subData
,
url
);
var
result
=
await
this
.
exec
(
cmd
);
return
result
;
}
async
execPushDataPost
(
subData
,
url
,
token
,
requestId
)
{
if
(
settings
.
env
==
'dev'
){
axios
.
defaults
.
headers
[
'token'
]
=
token
;
...
...
center-channel/app/config/settings.js
View file @
6301c103
...
...
@@ -30,6 +30,13 @@ var settings = {
}
return
"http://43.247.184.94:7200/center_channel_req_log/_doc?pretty"
;
},
enameClientUrl
:
function
(){
if
(
this
.
env
==
'dev'
)
{
return
"https://ote.ename.com/icp/"
;
}
else
{
return
"https://ote.ename.com/icp/"
;
}
},
//百度icp、edi、nc、rt
baiduClientParams
:
function
()
{
if
(
this
.
env
==
'dev'
)
{
...
...
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