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
7574174d
Commit
7574174d
authored
Sep 16, 2020
by
Sxy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 商机批次回调
parent
1d142a34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
center-manage/app/base/service/impl/common/channelhandlers/aliCloud.js
+9
-7
No files found.
center-manage/app/base/service/impl/common/channelhandlers/aliCloud.js
View file @
7574174d
...
...
@@ -140,14 +140,16 @@ class AliHandler {
"requestId"
:
""
}
}
else
{
// TODO: 回调写库
await
this
.
cacheManager
[
"AliCache"
].
cache
(
cachestr
,
JSON
.
stringify
({
cachestr
:
cachestr
}),
180000
);
//插入redis缓存
return
{
"status"
:
1
,
//1代表成功,否则失败
"msg"
:
"处理成功!"
,
"data"
:
""
,
"requestId"
:
""
let
{
actionBody
:
{
resultInfo
:
data
}
}
=
datajson
;
let
callbackData
=
data
.
data
;
var
rc
=
system
.
getObject
(
"util.execClient"
);
let
rtn
=
await
rc
.
execPost3
(
callbackData
,
this
.
icUrl
+
"/bizoptCtl/batchChanceUpdate"
);
//更新商机状态为已完成
var
j
=
JSON
.
parse
(
rtn
.
stdout
);
if
(
j
.
status
==
0
)
{
j
.
status
=
1
;
await
this
.
cacheManager
[
"AliCache"
].
cache
(
cachestr
,
JSON
.
stringify
({
cachestr
:
cachestr
}),
180000
);
//插入redis缓存
}
return
j
}
}
catch
(
error
)
{
return
system
.
getResultError
(
error
);
...
...
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