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
3def24ac
Commit
3def24ac
authored
Apr 10, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
9ff451d1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
6 deletions
+31
-6
center-channel/app/base/api/impl/auth/taskapi.js
+10
-5
center-channel/app/base/service/impl/common/pushlogSve.js
+5
-0
center-channel/app/base/service/impl/utilsSve/utilsPushSve.js
+16
-1
No files found.
center-channel/app/base/api/impl/auth/taskapi.js
View file @
3def24ac
...
...
@@ -5,12 +5,16 @@ class AccessAuthAPI extends WEBBase {
super
();
this
.
utilsAuthSve
=
system
.
getObject
(
"service.utilsSve.utilsAuthSve"
);
this
.
gatewaypushlogSve
=
system
.
getObject
(
"service.common.gatewaypushlogSve"
);
this
.
utilsPushSve
=
system
.
getObject
(
"service.utilsSve.utilsPushSve"
);
}
async
taskAliIcapi
(){
var
rtn
=
await
this
.
gatewaypushlogSve
.
taskAliIcapi
();
return
rtn
;
}
async
taskAliIcapi
()
{
var
rtn
=
await
this
.
gatewaypushlogSve
.
taskAliIcapi
();
return
rtn
;
}
async
taskAgainPushBusInfo
(
pobj
,
qobj
,
req
)
{
//再次推送业务数据
var
rtn
=
await
this
.
utilsPushSve
.
againPushBusInfo
(
pobj
);
return
rtn
;
}
}
module
.
exports
=
AccessAuthAPI
;
\ No newline at end of file
center-channel/app/base/service/impl/common/pushlogSve.js
View file @
3def24ac
...
...
@@ -66,5 +66,10 @@ class PushlogService extends ServiceBase {
this
.
dao
.
create
(
qobj
);
}
}
async
delDbById
(
id
)
{
var
sql
=
"DELETE FROM `center_channel_pushlog` WHERE id=:id"
;
var
paramWhere
=
{
id
:
id
};
this
.
customQuery
(
sql
,
paramWhere
);
}
}
module
.
exports
=
PushlogService
;
center-channel/app/base/service/impl/utilsSve/utilsPushSve.js
View file @
3def24ac
...
...
@@ -16,7 +16,7 @@ class UtilsPushService extends AppServiceBase {
this
.
pushBusInfo
(
pobj
,
opType
,
1
);
}
async
pushBusInfo
(
pobj
,
opType
,
isDelProductInfo
)
{
//推送业务总入口
-包括重试
async
pushBusInfo
(
pobj
,
opType
,
isDelProductInfo
)
{
//推送业务总入口
var
interface_list
=
pobj
.
interface_info
?
pobj
.
interface_info
:
pobj
.
actionBody
.
product_info
.
interface_info
;
if
(
!
interface_list
)
{
return
system
.
getResult
(
null
,
"暂无推送配置"
);
...
...
@@ -30,6 +30,21 @@ class UtilsPushService extends AppServiceBase {
this
.
reflexAction
(
element
,
opType
,
pobj
,
isDelProductInfo
);
}
}
async
againPushBusInfo
(
pobj
)
{
//再次推送业务总入口-重试
var
interface_info
=
pobj
.
interface_info
?
pobj
.
interface_info
:
pobj
.
actionBody
.
product_info
.
interface_info
;
if
(
!
interface_info
)
{
return
system
.
getResult
(
null
,
"暂无推送配置"
);
}
var
result
=
await
this
.
reflexAction
(
interface_info
,
pobj
.
opType
,
pobj
,
pobj
.
isDelProductInfo
||
1
);
if
(
result
.
data
!=
0
)
{
return
result
;
}
await
this
.
pushlogSve
.
delDbById
(
Number
(
pobj
.
id
||
0
));
return
system
.
getResultSuccess
();
}
async
reflexAction
(
interface_info
,
opType
,
pobj
,
isDelProductInfo
)
{
var
refResult
=
null
;
pobj
.
interface_info
=
interface_info
;
...
...
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