Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-activity-platform
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
陈峰
2018-08-09 15:21:07 +0800
Commit
d871d807ca23cdf5292e5f5840735464cbfd0a50
1 parent
8bf7b166
commit
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
app.js
config/common.js
app.js
View file @
d871d80
...
...
@@ -55,6 +55,7 @@ app.use(cookieParser());
app
.
use
((
req
,
res
,
next
)
=>
{
req
.
user
=
{};
// 全局的用户数据
req
.
yoho
=
{};
// req和res绑定yoho对象,用于传递全局数据
req
.
cookies
.
from
=
'action'
;
next
();
});
...
...
config/common.js
View file @
d871d80
...
...
@@ -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'
,
...
...
Please
register
or
login
to post a comment