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

This commit is contained in:
luying
2021-08-12 14:01:35 +08:00
parent ac6c584f22
commit 743d182808

View File

@@ -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) {
//刷新
refresh(session);
return checkEvent(session).then(()=>{
next(err);
}).catch(e => {
console.error(e);
next(err);
}); // 奇遇本检查
// return checkEvent(session).then(()=>{
// next(err);
// }).catch(e => {
// console.error(e);
// next(err);
// }); // 奇遇本检查
next(null);
};