Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
5
51business
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
方斌
51business
Commits
fe094eb9
Commit
fe094eb9
authored
Feb 10, 2020
by
Hsinli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
6c514815
Pipeline
#19283
passed with stage
in 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
check.js
app/service/duxiaoman/check.js
+6
-5
No files found.
app/service/duxiaoman/check.js
View file @
fe094eb9
...
...
@@ -15,14 +15,15 @@ class CheckService extends Service {
isLogin
:
false
,
hidePhone
:
''
};
if
(
!
ctx
.
appUserId
||
!
ctx
.
deviceId
||
!
ctx
.
deviceLogin
Id
||
!
ctx
.
userId
)
{
if
(
!
ctx
.
oldUser
Id
||
!
ctx
.
userId
)
{
//如果没有登录就不做处理
return
ret
;
}
let
userSid
=
isNaN
(
ctx
.
oldUserId
)
?
ctx
.
helper
.
decodeUserSid
(
ctx
.
oldUserId
)
:
ctx
.
oldUserId
;
let
filter
=
{
attributes
:
[
'passport'
],
where
:
{
sid
:
ctx
.
oldUserI
d
,
sid
:
userSi
d
,
yys_cid
:
10
}
}
...
...
@@ -63,15 +64,15 @@ class CheckService extends Service {
async
check
()
{
const
{
ctx
}
=
this
;
if
(
!
ctx
.
appUserId
||
!
ctx
.
oldUserId
||
!
ctx
.
userId
)
{
if
(
!
ctx
.
oldUserId
||
!
ctx
.
userId
)
{
//如果没有登录就不做处理
ctx
.
failed
(
'登录异常'
);
}
//获取用户手机号
let
userSid
=
isNaN
(
ctx
.
oldUserId
)
?
ctx
.
helper
.
decodeUserSid
(
ctx
.
oldUserId
)
:
ctx
.
oldUserId
;
let
filter
=
{
attributes
:
[
'passport'
],
where
:
{
sid
:
ctx
.
oldUserI
d
,
sid
:
userSi
d
,
yys_cid
:
10
}
}
...
...
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