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
f5737e5e
Commit
f5737e5e
authored
Aug 19, 2020
by
王勇飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gyq
parent
7a6c9f6f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
center-manage/app/base/service/impl/common/channelhandlers/tx.js
+37
-0
No files found.
center-manage/app/base/service/impl/common/channelhandlers/tx.js
View file @
f5737e5e
...
...
@@ -543,6 +543,43 @@ class TxHandler {
}
}
async
createLeads
(
datajson
){
//财税需求处理
try
{
var
cachestr
=
sha235
(
JSON
.
stringify
(
datajson
));
var
cacheInfo
=
await
this
.
cacheManager
[
"TxCache"
].
getCache
(
cachestr
);
if
(
cacheInfo
&&
cacheInfo
!=
'undefined'
)
{
return
{
"status"
:
1
,
//1代表成功,否则失败
"msg"
:
"已处理成功!"
,
"data"
:
""
,
"requestId"
:
""
}
}
else
{
var
rc
=
system
.
getObject
(
"util.execClient"
);
var
requrl
=
this
.
icUrl
+
"/bizoptCtl/insertInfo"
;
//这个地方要改
var
params
=
{
"businessMode"
:
datajson
.
actionBody
.
NeedNum
,
//需求编号
"servicerName"
:
datajson
.
actionBody
.
ServicerName
,
//服务商编码
"serviceCode"
:
datajson
.
actionBody
.
RegionId
,
//服务地区编码
"serviceName"
:
datajson
.
actionBody
.
RegionName
,
//服务地区名字,需要转换
//"contactsName": datajson.actionBody.ContactsName,
"contactsPhone"
:
datajson
.
actionBody
.
ContactsMobile
,
//联系人电话
"businessType"
:
datajson
.
actionBody
.
ConsultType
,
//需求类型
"businessName"
:
datajson
.
actionBody
.
ConsultTypeName
,
//需求名称
"currentStatus"
:
"beforeSubmission"
,
"channelSource"
:
"tencentCloud"
,
//渠道
"channelNumber"
:
"tx"
}
}
}
catch
(
error
){
return
system
.
getResultError
(
error
);
}
}
}
module
.
exports
=
new
TxHandler
();
...
...
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