@@ -51,6 +52,7 @@ class PushlogService extends ServiceBase {
...
@@ -51,6 +52,7 @@ class PushlogService extends ServiceBase {
returnresult;
returnresult;
}
}
//获取channel推送失败记录
asyncgetPushFailLogList(actionBody){
asyncgetPushFailLogList(actionBody){
varsql="SELECT id,appid,`content`,failType,pushNumber,opTitle,resultInfo,created_at FROM `center_channel_pushfaillog` WHERE pushNumber=10 ";
varsql="SELECT id,appid,`content`,failType,pushNumber,opTitle,resultInfo,created_at FROM `center_channel_pushfaillog` WHERE pushNumber=10 ";
letwhereParams={};
letwhereParams={};
...
@@ -69,7 +71,7 @@ class PushlogService extends ServiceBase {
...
@@ -69,7 +71,7 @@ class PushlogService extends ServiceBase {
}
}
/**
/**
* 重新推送
* channel重新推送
* @param actionBody
* @param actionBody
* @returns {Promise<void>}
* @returns {Promise<void>}
*/
*/
...
@@ -89,6 +91,45 @@ class PushlogService extends ServiceBase {
...
@@ -89,6 +91,45 @@ class PushlogService extends ServiceBase {
returnsystem.getResult(result);
returnsystem.getResult(result);
}
}
//获取Gateway推送失败记录
asyncgetGatewayPushFailLogList(actionBody){
varsql="SELECT id,requestUrl,requestjson,pushUrl,pushActionType,pushtimes,pushStatus,created_at,error FROM `gateway_pushlog` WHERE pushtimes=4 and pushStatus='wts'";
varsql="INSERT INTO `igirl_api`.`center_channel_public_servicelog` (`appkey`,`pushUrl`,`pushContent`,`resultInfo`,`pushNumber`,`clientIp`,created_at)"+
varsql="INSERT INTO `igirl_api`.`center_channel_public_servicelog` (`appkey`,`pushUrl`,`pushContent`,`resultInfo`,`pushNumber`,`clientIp`,created_at)"+