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
a5ca1acd
Commit
a5ca1acd
authored
Aug 10, 2020
by
Sxy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 商机关闭推送
parent
830d165d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
5 deletions
+18
-5
center-manage/app/base/service/impl/common/channelhandlers/aliCloud.js
+18
-5
No files found.
center-manage/app/base/service/impl/common/channelhandlers/aliCloud.js
View file @
a5ca1acd
...
...
@@ -16,7 +16,7 @@ class AliHandler {
*/
//新商机处理
async
addChance
(
datajson
)
{
console
.
log
(
"put in queue"
,
datajson
);
console
.
log
(
"put in queue
[addChance]
"
,
datajson
);
try
{
var
cachestr
=
sha235
(
JSON
.
stringify
(
datajson
));
var
cacheInfo
=
await
this
.
cacheManager
[
"AliCache"
].
getCache
(
cachestr
);
...
...
@@ -71,7 +71,7 @@ class AliHandler {
}
async
updateChanceStatus
(
datajson
)
{
console
.
log
(
"put in queue"
+
JSON
.
stringify
(
datajson
)
+
"DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD"
);
console
.
log
(
"put in queue
[updateChanceStatus]
"
+
JSON
.
stringify
(
datajson
)
+
"DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD"
);
try
{
var
cachestr
=
sha235
(
JSON
.
stringify
(
datajson
));
var
cacheInfo
=
await
this
.
cacheManager
[
"AliCache"
].
getCache
(
cachestr
);
...
...
@@ -86,9 +86,22 @@ class AliHandler {
let
{
actionBody
}
=
datajson
;
var
rc
=
system
.
getObject
(
"util.execClient"
);
var
requrl
=
this
.
icUrl
+
"/bizoptCtl/updateStatusByDemandCode"
;
var
stau
=
{
"businessMode"
:
actionBody
.
intentionBizId
,
"currentStatus"
:
"beforeConfirmation"
var
stau
;
switch
(
actionBody
.
status
)
{
case
"createSolution"
:
stau
=
{
"businessMode"
:
actionBody
.
intentionBizId
,
"currentStatus"
:
"beforeConfirmation"
}
break
case
"closeNeed"
:
stau
=
{
"businessMode"
:
actionBody
.
intentionBizId
,
"currentStatus"
:
"isClosed"
}
break
default
:
return
system
.
getResultError
(
"status 状态值错误"
);
}
let
rtn
=
await
rc
.
execPost3
({
"d"
:
stau
},
requrl
);
//更新商机状态为已完成
var
j
=
JSON
.
parse
(
rtn
.
stdout
);
...
...
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