Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
2b367616
Commit
2b367616
authored
May 28, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
e053e07c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
12 deletions
+11
-12
xgg-saas-admin/app/base/system.js
+2
-2
xgg-saas-admin/app/config/routes/web.js
+9
-10
No files found.
xgg-saas-admin/app/base/system.js
View file @
2b367616
...
...
@@ -194,7 +194,7 @@ class System {
common
:
dev
+
":3102"
+
path
,
// 商户服务
merchant
:
dev
+
":3101"
+
path
,
merchant
:
local
+
":3101"
+
path
,
// 订单服务
order
:
dev
+
":3103"
+
path
,
...
...
@@ -203,7 +203,7 @@ class System {
invoice
:
dev
+
":3105"
+
path
,
// 用户服务
uc
:
dev
+
":3106"
+
path
,
uc
:
local
+
":3106"
+
path
,
// 交易
trade
:
dev
+
":3107"
+
path
,
...
...
xgg-saas-admin/app/config/routes/web.js
View file @
2b367616
...
...
@@ -60,12 +60,11 @@ module.exports = function (app) {
var
gname
=
req
.
params
[
"gname"
];
classPath
=
gname
+
"."
+
classPath
;
var
params
=
[];
if
(
req
.
loginUser
)
{
req
.
query
=
req
.
query
||
{};
req
.
query
.
saas_id
=
req
.
loginUser
.
saas_id
;
req
.
query
.
channel_id
=
req
.
loginUser
.
channel_id
;
}
// if(req.loginUser) {
// req.query = req.query || {};
// req.query.saas_id = req.loginUser.saas_id;
// req.query.channel_id = req.loginUser.channel_id;
// }
params
.
push
(
methodName
);
params
.
push
(
req
.
body
);
params
.
push
(
req
.
query
);
...
...
@@ -94,10 +93,10 @@ module.exports = function (app) {
req
.
body
.
agent
=
req
.
headers
[
"user-agent"
];
req
.
body
.
classname
=
classPath
;
if
(
req
.
loginUser
)
{
req
.
body
.
saas_id
=
req
.
loginUser
.
saas_id
;
req
.
body
.
channel_id
=
req
.
loginUser
.
channel_id
;
}
//
if(req.loginUser) {
//
req.body.saas_id = req.loginUser.saas_id;
//
req.body.channel_id = req.loginUser.channel_id;
//
}
params
.
push
(
methodName
);
params
.
push
(
req
.
body
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment