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
35a6ef4c
Commit
35a6ef4c
authored
Jun 02, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
g
parent
1da378ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
7 deletions
+16
-7
xgg-saas-merchant/app/base/controller/impl/uc/userCtl.js
+11
-2
xgg-saas-merchant/app/base/system.js
+5
-5
No files found.
xgg-saas-merchant/app/base/controller/impl/uc/userCtl.js
View file @
35a6ef4c
...
...
@@ -12,7 +12,7 @@ class UserCtl extends CtlBase {
this
.
redisClient
=
system
.
getObject
(
"util.redisClient"
);
this
.
captchaSve
=
system
.
getObject
(
"service.common.captchaSve"
);
this
.
deliverSve
=
system
.
getObject
(
"service.common.deliverSve"
);
this
.
merchant
Ctl
=
system
.
getObject
(
"service.saas.merchantSve"
);
this
.
merchant
Sve
=
system
.
getObject
(
"service.saas.merchantSve"
);
}
async
login
(
pobj
,
pobj2
,
req
,
res
)
{
...
...
@@ -29,7 +29,7 @@ class UserCtl extends CtlBase {
loginUser
=
loginUser
.
data
;
let
channel
=
await
this
.
merchant
Ctl
.
info
({
id
:
loginUser
.
saas_merchant_id
});
let
channel
=
await
this
.
merchant
Sve
.
info
({
id
:
loginUser
.
saas_merchant_id
});
if
(
channel
.
status
!=
0
)
{
return
system
.
getResult
(
null
,
`渠道【
${
loginName
}
】不存在`
);
}
...
...
@@ -94,6 +94,15 @@ class UserCtl extends CtlBase {
}
async
currentUser
(
qobj
,
pobj
,
req
)
{
let
saas_merchant_id
=
req
.
loginUser
.
saas_merchant_id
;
if
(
!
saas_merchant_id
){
return
system
.
getResult
(
null
,
`登录失效,请重新登录`
);
}
let
_merchant
=
await
this
.
merchantSve
.
info
({
id
:
saas_merchant_id
});
if
(
_merchant
.
status
!=
0
){
return
system
.
getResult
(
null
,
`商户不存在`
);
}
req
.
loginUser
.
saas_merchant_name
=
_merchant
.
data
.
name
;
return
system
.
getResultSuccess
(
req
.
loginUser
);
}
...
...
xgg-saas-merchant/app/base/system.js
View file @
35a6ef4c
...
...
@@ -188,22 +188,22 @@ class System {
let
dev
=
"http://39.107.234.14"
;
return
{
// 公共服务
common
:
local
+
":3102"
+
path
,
common
:
dev
+
":3102"
+
path
,
// 商户服务
merchant
:
local
+
":3101"
+
path
,
merchant
:
dev
+
":3101"
+
path
,
// 订单服务
order
:
local
+
":3103"
+
path
,
order
:
dev
+
":3103"
+
path
,
// 发票服务
invoice
:
dev
+
":3105"
+
path
,
// 用户服务
uc
:
local
+
":3106"
+
path
,
uc
:
dev
+
":3106"
+
path
,
// 交易
trade
:
local
+
":3107"
+
path
,
trade
:
dev
+
":3107"
+
path
,
}
}
else
{
return
{
...
...
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