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
2f7c5dfc
Commit
2f7c5dfc
authored
Aug 25, 2020
by
张庆香
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add LeadsCreate by zqx
parent
d1b9196b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
6 deletions
+31
-6
center-manage/app/base/service/impl/common/channelhandlers/tx.js
+31
-6
No files found.
center-manage/app/base/service/impl/common/channelhandlers/tx.js
View file @
2f7c5dfc
...
...
@@ -526,7 +526,7 @@ class TxHandler {
}
async
ServiceCreate
(
datajson
)
{
//获取融易算服务实例到队列
async
ServiceCreate
(
datajson
)
{
//获取融易算服务实例到队列
try
{
var
rc
=
system
.
getObject
(
"util.execClient"
);
var
requrl
=
this
.
queueUrl
;
...
...
@@ -553,8 +553,7 @@ class TxHandler {
"errorMsg"
:
"ok"
,
"data"
:
null
}
}
else
{
}
else
{
return
{
"requestId"
:
datajson
.
requestId
,
"success"
:
false
,
...
...
@@ -564,8 +563,7 @@ class TxHandler {
}
}
}
catch
(
error
)
{
}
catch
(
error
)
{
return
{
"requestId"
:
datajson
.
requestId
,
"success"
:
false
,
...
...
@@ -611,6 +609,33 @@ class TxHandler {
// }
// }
async
LeadsCreate
(
datajson
)
{
try
{
var
rc
=
system
.
getObject
(
"util.execClient"
);
var
requrl
=
this
.
queueUrl
//改队列
var
params
=
{
"actionType"
:
"produceData"
,
"actionBody"
:
{
"pushUrl"
:
this
.
icUrl
+
"/bizOptCtl"
,
"actionType"
:
"insertInfo"
,
"identifyCode"
:
"book-manage"
,
"messageBody"
:
datajson
,
"headData"
:
null
//
},
"requestId"
:
datajson
.
requestId
}
var
rtn
=
await
rc
.
execPost
(
params
,
requrl
);
var
j
=
JSON
.
parse
(
rtn
.
stdout
);
if
(
j
.
status
==
1
)
{
return
system
.
getResult
(
"获取数据成功!"
);
}
else
{
return
system
.
getResultError
(
"获取数据失败!"
);
}
}
catch
(
error
)
{
return
system
.
getResultError
(
error
)
}
}
}
module
.
exports
=
new
TxHandler
();
...
...
@@ -633,4 +658,3 @@ module.exports = new TxHandler();
// console.log(JSON.stringify(d));
// console.log("dddddddddddddd");
// })()
\ 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