奇遇:客户端没有用到推送的数据,取消filter里面的推送只保留主动接口了

This commit is contained in:
luying
2021-08-12 14:02:09 +08:00
parent ac6c584f22
commit 743d182808
@@ -46,10 +46,11 @@ Filter.prototype.before = async function (routeRecord: RouteRecord, msg: any, se
Filter.prototype.after = function (err: Error, routeRecord: RouteRecord, msg: any, session: FrontendOrBackendSession, resp: any, next: HandlerCallback) { Filter.prototype.after = function (err: Error, routeRecord: RouteRecord, msg: any, session: FrontendOrBackendSession, resp: any, next: HandlerCallback) {
//刷新 //刷新
refresh(session); refresh(session);
return checkEvent(session).then(()=>{ // return checkEvent(session).then(()=>{
next(err); // next(err);
}).catch(e => { // }).catch(e => {
console.error(e); // console.error(e);
next(err); // next(err);
}); // 奇遇本检查 // }); // 奇遇本检查
next(null);
}; };