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
7d7b1524
Commit
7d7b1524
authored
Apr 08, 2021
by
王悦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 批量推fq单条错误
parent
91d985d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
+20
-20
center-channel/app/base/service/impl/common/gatewaypushlogSve.js
+20
-20
No files found.
center-channel/app/base/service/impl/common/gatewaypushlogSve.js
View file @
7d7b1524
...
...
@@ -21,30 +21,30 @@ class GatewaypushlogService extends ServiceBase {
}
var
self
=
this
;
for
(
var
i
=
0
;
i
<
count
;
i
++
)
{
var
icloginfo
=
icloginfos
[
i
];
var
requestdata
=
null
;
if
(
icloginfo
&&
icloginfo
.
requestjson
)
{
requestdata
=
JSON
.
parse
(
icloginfo
.
requestjson
);
}
var
url
=
settings
.
gatewayUrl
()
+
"action/intentionapi/springBoard"
;
var
rtn
=
await
self
.
execClient
.
execPost
(
requestdata
,
url
);
var
data
=
rtn
try
{
data
=
JSON
.
parse
(
rtn
.
stdout
);
var
icloginfo
=
icloginfos
[
i
];
var
requestdata
=
null
;
if
(
icloginfo
&&
icloginfo
.
requestjson
)
{
requestdata
=
JSON
.
parse
(
icloginfo
.
requestjson
);
}
var
url
=
settings
.
gatewayUrl
()
+
"action/intentionapi/springBoard"
;
var
rtn
=
await
self
.
execClient
.
execPost
(
requestdata
,
url
);
var
data
=
rtn
data
=
JSON
.
parse
(
rtn
.
stdout
);
if
(
data
.
success
)
{
icloginfo
.
pushStatus
=
"yts"
;
}
else
{
if
(
data
.
errorMsg
!=
"状态错误"
)
{
//除1 2 4 11其它状态没处理、返回的状态错误
data
.
push_url
=
url
data
.
api
=
"center-channel/taskAliIcapi"
this
.
dingClient
.
gatewayPushError
(
data
)
}
icloginfo
.
pushtimes
+=
1
;
}
await
this
.
update
(
icloginfo
);
}
catch
(
e
)
{
console
.
error
(
e
)
}
if
(
data
.
success
)
{
icloginfo
.
pushStatus
=
"yts"
;
}
else
{
if
(
data
.
errorMsg
!=
"状态错误"
)
{
//除1 2 4 11其它状态没处理、返回的状态错误
data
.
push_url
=
url
data
.
api
=
"center-channel/taskAliIcapi"
this
.
dingClient
.
gatewayPushError
(
data
)
}
icloginfo
.
pushtimes
+=
1
;
}
await
this
.
update
(
icloginfo
);
}
}
return
system
.
getResultSuccess
();
...
...
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