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
2bb6d928
Commit
2bb6d928
authored
Mar 16, 2021
by
Sxy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 推送列表
parent
2a09a3c3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
0 deletions
+65
-0
center-manage/app/base/controller/impl/qifutong/pushlogCtl.js
+30
-0
center-manage/app/base/service/impl/qifutong/pushlogSve.js
+19
-0
center-manage/app/base/utils/qifutong/baseClient.js
+16
-0
No files found.
center-manage/app/base/controller/impl/qifutong/pushlogCtl.js
0 → 100644
View file @
2bb6d928
const
CtlBase
=
require
(
"../../ctl.base"
);
var
system
=
require
(
"../../../system"
);
class
PushlogCtl
extends
CtlBase
{
constructor
()
{
super
(
"qifutong"
,
CtlBase
.
getServiceName
(
PushlogCtl
));
}
// 获取 推送 log信息
async
getPushFailLogList
(
pobj
,
qobj
,
req
)
{
try
{
const
rs
=
await
this
.
service
.
getPushFailLogList
(
pobj
);
return
system
.
getResult
(
rs
);
}
catch
(
err
)
{
return
system
.
getResult
(
null
,
err
.
message
)
}
}
async
failLogrePush
(
pobj
,
qobj
,
req
)
{
if
(
!
pobj
.
id
)
{
return
system
.
getResult
(
null
,
"id can not be empty,100290"
);
}
try
{
const
rs
=
await
this
.
service
.
failLogrePush
(
pobj
);
return
system
.
getResult
(
rs
);
}
catch
(
err
)
{
return
system
.
getResult
(
null
,
err
.
message
)
}
}
}
module
.
exports
=
PushlogCtl
;
center-manage/app/base/service/impl/qifutong/pushlogSve.js
0 → 100644
View file @
2bb6d928
const
ToQiFuTong
=
require
(
'../../../utils/qifutong/baseClient'
).
getInstance
();
class
PushlogService
{
async
getPushFailLogList
(
pobj
)
{
let
{
appid
=
""
,
likeStr
=
""
}
=
pobj
;
const
data
=
await
ToQiFuTong
.
getPushFailLogList
({
appid
,
likeStr
});
return
data
;
}
async
failLogrePush
(
pobj
)
{
let
{
content
=
{},
id
}
=
pobj
;
const
data
=
await
ToQiFuTong
.
failLogrePush
({
content
,
id
});
return
data
;
}
}
module
.
exports
=
PushlogService
;
\ No newline at end of file
center-manage/app/base/utils/qifutong/baseClient.js
View file @
2bb6d928
...
...
@@ -232,6 +232,22 @@ class BaseClient {
return
data
;
}
async
getPushFailLogList
(
pobj
)
{
const
data
=
await
this
.
pushQiFuTong
(
'/web/action/opLog/getPushFailLogList'
,
{
"actionType"
:
"getPushFailLogList"
,
"actionBody"
:
pobj
});
return
data
;
}
async
failLogrePush
(
pobj
)
{
const
data
=
await
this
.
pushQiFuTong
(
'/web/action/opLog/rePush'
,
{
"actionType"
:
"rePush"
,
"actionBody"
:
pobj
});
return
data
;
}
// 获取一段时间内的所有日期
...
...
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