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
3192b303
Commit
3192b303
authored
Apr 23, 2021
by
linboxuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lin add getGatewayPushFailLogList
parent
b05ec69a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
60 additions
and
34 deletions
+60
-34
center-manage/app/base/controller/impl/qifutong/pushlogCtl.js
+30
-20
center-manage/app/base/service/impl/qifutong/pushlogSve.js
+23
-14
center-manage/app/base/utils/qifutong/baseClient.js
+7
-0
No files found.
center-manage/app/base/controller/impl/qifutong/pushlogCtl.js
View file @
3192b303
...
@@ -2,29 +2,39 @@ const CtlBase = require("../../ctl.base");
...
@@ -2,29 +2,39 @@ const CtlBase = require("../../ctl.base");
var
system
=
require
(
"../../../system"
);
var
system
=
require
(
"../../../system"
);
class
PushlogCtl
extends
CtlBase
{
class
PushlogCtl
extends
CtlBase
{
constructor
()
{
constructor
()
{
super
(
"qifutong"
,
CtlBase
.
getServiceName
(
PushlogCtl
));
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
)
}
}
// 获取 推送 log信息
}
async
getPushFailLogList
(
pobj
,
qobj
,
req
)
{
try
{
async
failLogrePush
(
pobj
,
qobj
,
req
)
{
const
rs
=
await
this
.
service
.
getPushFailLogList
(
pobj
);
if
(
!
pobj
.
id
)
{
return
system
.
getResult
(
rs
);
return
system
.
getResult
(
null
,
"id can not be empty,100290"
);
}
catch
(
err
)
{
}
return
system
.
getResult
(
null
,
err
.
message
)
try
{
}
const
rs
=
await
this
.
service
.
failLogrePush
(
pobj
);
return
system
.
getResult
(
rs
);
}
catch
(
err
)
{
return
system
.
getResult
(
null
,
err
.
message
)
}
}
}
async
failLogrePush
(
pobj
,
qobj
,
req
)
{
async
getGatewayPushFailLogList
(
pobj
,
qobj
,
req
)
{
if
(
!
pobj
.
id
)
{
try
{
return
system
.
getResult
(
null
,
"id can not be empty,100290"
);
const
rs
=
await
this
.
service
.
getGatewayPushFailLogList
(
pobj
);
}
return
system
.
getResult
(
rs
);
try
{
}
catch
(
err
)
{
const
rs
=
await
this
.
service
.
failLogrePush
(
pobj
);
return
system
.
getResult
(
null
,
err
.
message
)
return
system
.
getResult
(
rs
);
}
catch
(
err
)
{
return
system
.
getResult
(
null
,
err
.
message
)
}
}
}
}
}
}
module
.
exports
=
PushlogCtl
;
module
.
exports
=
PushlogCtl
;
center-manage/app/base/service/impl/qifutong/pushlogSve.js
View file @
3192b303
const
ToQiFuTong
=
require
(
'../../../utils/qifutong/baseClient'
).
getInstance
();
const
ToQiFuTong
=
require
(
'../../../utils/qifutong/baseClient'
).
getInstance
();
class
PushlogService
{
class
PushlogService
{
async
getPushFailLogList
(
pobj
)
{
async
getPushFailLogList
(
pobj
)
{
let
{
appid
=
""
,
likeStr
=
""
}
=
pobj
;
let
{
appid
=
""
,
likeStr
=
""
}
=
pobj
;
const
data
=
await
ToQiFuTong
.
getPushFailLogList
({
const
data
=
await
ToQiFuTong
.
getPushFailLogList
({
appid
,
likeStr
appid
,
likeStr
});
});
return
data
;
return
data
;
}
}
async
failLogrePush
(
pobj
)
{
async
failLogrePush
(
pobj
)
{
let
{
content
=
{},
id
}
=
pobj
;
let
{
content
=
{},
id
}
=
pobj
;
const
data
=
await
ToQiFuTong
.
failLogrePush
({
const
data
=
await
ToQiFuTong
.
failLogrePush
({
content
,
id
content
,
id
});
});
return
data
;
return
data
;
}
}
async
getGatewayPushFailLogList
(
pobj
)
{
let
{
likeParams
=
""
,
likeError
=
""
}
=
pobj
;
const
data
=
await
ToQiFuTong
.
getGatewayPushFailLogList
({
likeParams
,
likeError
});
return
data
;
}
}
}
module
.
exports
=
PushlogService
;
module
.
exports
=
PushlogService
;
\ No newline at end of file
center-manage/app/base/utils/qifutong/baseClient.js
View file @
3192b303
...
@@ -280,6 +280,13 @@ class BaseClient {
...
@@ -280,6 +280,13 @@ class BaseClient {
return
data
;
return
data
;
}
}
async
getGatewayPushFailLogList
(
pobj
)
{
const
data
=
await
this
.
pushQiFuTong
(
'/web/action/opLog/getGatewayPushFailLogList'
,
{
"actionType"
:
"getGatewayPushFailLogList"
,
"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