Authored by 陈峰

commit

... ... @@ -55,6 +55,7 @@ app.use(cookieParser());
app.use((req, res, next) => {
req.user = {}; // 全局的用户数据
req.yoho = {}; // req和res绑定yoho对象,用于传递全局数据
req.cookies.from = 'action';
next();
});
... ...
... ... @@ -29,6 +29,11 @@ module.exports = {
serviceNotify: 'http://service.yoho.cn/',
platformApi: 'http://172.16.6.210:8088/',
},
from: {
action: {
business_line: 'yohobuy'
}
},
corsAllowOrigin: [
'http://localhost:8081',
'http://localhost:9000',
... ...