...
|
...
|
@@ -112,7 +112,7 @@ app.use((req, res, next) => { |
|
|
req.yoho = {}; // req和res绑定yoho对象,用于传递全局数据, 如req.yoho.channel等
|
|
|
req.app.locals.wap = app.locals.wap; // zookeper对象赋值
|
|
|
|
|
|
req.isApmReport = app.locals.wap.open.bughd; // 把错误上报的开关绑定到上下文,node-lib 库要使用
|
|
|
req.isApmReport = app.locals.wap.open && app.locals.wap.open.bughd; // 把错误上报的开关绑定到上下文,node-lib 库要使用
|
|
|
next();
|
|
|
});
|
|
|
|
...
|
...
|
|