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
d5587988
Commit
d5587988
authored
Nov 06, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
1c536b2f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
center-channel/app/base/service/impl/utilsSve/utilsPushSve.js
+7
-5
No files found.
center-channel/app/base/service/impl/utilsSve/utilsPushSve.js
View file @
d5587988
...
...
@@ -53,7 +53,7 @@ class UtilsPushService extends AppServiceBase {
}
async
pushBusInfo
(
pobj
,
opType
,
isDelProductInfo
)
{
//推送业务总入口,不在db中做配置进行调用
console
.
log
(
JSON
.
stringify
(
pobj
),
".......pushBusInfo........................."
);
console
.
log
(
JSON
.
stringify
(
pobj
),
".......pushBusInfo........................."
);
var
interface_list
=
pobj
.
interface_info
?
pobj
.
interface_info
:
pobj
.
actionBody
.
product_info
.
interface_info
;
if
(
!
interface_list
)
{
return
system
.
getResult
(
null
,
"暂无推送配置"
);
...
...
@@ -64,11 +64,11 @@ class UtilsPushService extends AppServiceBase {
}
var
self
=
this
;
let
result
;
if
(
interface_list_temp
&&
interface_list_temp
.
length
==
1
)
{
if
(
interface_list_temp
&&
interface_list_temp
.
length
==
1
)
{
const
element
=
interface_list_temp
[
0
];
var
reflexActionRes
=
await
self
.
reflexAction
(
element
,
opType
,
pobj
,
isDelProductInfo
);
return
reflexActionRes
;
}
else
{
}
else
{
for
(
let
index
=
0
;
index
<
interface_list_temp
.
length
;
index
++
)
{
const
element
=
interface_list_temp
[
index
];
result
=
await
self
.
reflexAction
(
element
,
opType
,
pobj
,
isDelProductInfo
);
...
...
@@ -85,6 +85,8 @@ class UtilsPushService extends AppServiceBase {
}
var
result
=
await
this
.
reflexAction
(
interface_info
,
pobj
.
opType
,
pobj
,
pobj
.
isDelProductInfo
||
1
);
if
(
result
.
status
!=
0
)
{
//TODO:记录推送失败的log
this
.
execClientNew
.
execLogs
(
"pushBusInfo-reflexAction-result:"
,
pobj
,
"center-channel-reflexAction"
,
result
,
null
);
return
result
;
}
return
system
.
getResultSuccess
();
...
...
@@ -124,8 +126,8 @@ class UtilsPushService extends AppServiceBase {
delete
actionBody
[
"product_info"
];
}
//是否删除产品信息进行推送
refResult
=
await
this
.
restPostUrl
(
pobj
.
actionBody
,
interface_info
.
interface_url
);
if
(
refResult
.
code
==
1
)
{
refResult
.
status
=
0
if
(
refResult
.
code
==
1
)
{
refResult
.
status
=
0
}
this
.
disposePushResult
(
pobj
,
refResult
,
"ycUrlPush->reflexAction->refResult"
,
this
.
pushlogFailType
.
NEWRPC
);
}
...
...
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