Showing
1 changed file
with
1 additions
and
1 deletions
@@ -112,7 +112,7 @@ app.use((req, res, next) => { | @@ -112,7 +112,7 @@ app.use((req, res, next) => { | ||
112 | req.yoho = {}; // req和res绑定yoho对象,用于传递全局数据, 如req.yoho.channel等 | 112 | req.yoho = {}; // req和res绑定yoho对象,用于传递全局数据, 如req.yoho.channel等 |
113 | req.app.locals.wap = app.locals.wap; // zookeper对象赋值 | 113 | req.app.locals.wap = app.locals.wap; // zookeper对象赋值 |
114 | 114 | ||
115 | - req.isApmReport = app.locals.wap.open.bughd; // 把错误上报的开关绑定到上下文,node-lib 库要使用 | 115 | + req.isApmReport = app.locals.wap.open && app.locals.wap.open.bughd; // 把错误上报的开关绑定到上下文,node-lib 库要使用 |
116 | next(); | 116 | next(); |
117 | }); | 117 | }); |
118 | 118 |
-
Please register or login to post a comment