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
0fe740a4
Commit
0fe740a4
authored
Apr 30, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
c64dea51
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
center-manage/app/base/controller/impl/auth/userCtl.js
+1
-1
center-manage/app/base/service/impl/auth/userSve.js
+5
-4
No files found.
center-manage/app/base/controller/impl/auth/userCtl.js
View file @
0fe740a4
...
@@ -95,7 +95,7 @@ class UserCtl extends CtlBase {
...
@@ -95,7 +95,7 @@ class UserCtl extends CtlBase {
return
rtn
;
return
rtn
;
}
}
async
pmloginByVCode
(
pobj
,
qobj
,
req
)
{
async
pmloginByVCode
(
pobj
,
qobj
,
req
)
{
let
rtn
=
this
.
service
.
pmloginByVCode
(
pobj
,
qobj
);
let
rtn
=
await
this
.
service
.
pmloginByVCode
(
pobj
,
qobj
);
return
system
.
getResult
(
rtn
);
return
system
.
getResult
(
rtn
);
}
}
async
pmSendVCode
(
pobj
,
qobj
,
req
)
{
async
pmSendVCode
(
pobj
,
qobj
,
req
)
{
...
...
center-manage/app/base/service/impl/auth/userSve.js
View file @
0fe740a4
...
@@ -163,10 +163,11 @@ class UserService extends ServiceBase {
...
@@ -163,10 +163,11 @@ class UserService extends ServiceBase {
return
rtn
;
return
rtn
;
}
else
{
}
else
{
//先按照用户名查续身份信息,获取key,secret,
//先按照用户名查续身份信息,获取key,secret,
let
u
=
await
this
.
pmregister
({
userName
:
mobile
,
nickName
:
mobile
,
rolecodes
:
p
.
rolecodes
,
company_id
:
p
.
company_id
,
app_id
:
p
.
app_id
});
let
regrtn
=
await
this
.
pmregister
({
userName
:
mobile
,
nickName
:
mobile
,
rolecodes
:
p
.
rolecodes
,
company_id
:
p
.
company_id
,
app_id
:
p
.
app_id
});
let
token
=
await
this
.
cmakejwt
(
u
.
jwtkey
,
u
.
jwtsecret
,
null
);
let
token
=
await
this
.
cmakejwt
(
regrtn
.
user
.
jwtkey
,
regrtn
.
user
.
jwtsecret
,
null
);
rtn
.
token
=
token
;
// rtn.token = token;
rtn
.
user
=
u
;
// rtn.user = u;
regrtn
.
token
=
token
return
rtn
;
return
rtn
;
}
}
}
}
...
...
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