Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eduline
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
冷斌
eduline
Commits
5c86af7d
Commit
5c86af7d
authored
Jun 29, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
61e2a97f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
addons/model/PassportModel.class.php
+8
-0
apps/basic/Lib/Action/PassportAction.class.php
+4
-2
No files found.
addons/model/PassportModel.class.php
View file @
5c86af7d
...
...
@@ -155,6 +155,14 @@ class PassportModel extends Model
}
}
public
function
wxLogin
(
$uid
)
{
$user
=
model
(
'User'
)
->
where
([
'uid'
=>
$uid
])
->
find
();
// 记录登录日志,首次登录判断
$this
->
rel
=
D
(
'LoginRecord'
)
->
where
(
"uid = "
.
$uid
)
->
field
(
'locktime'
)
->
find
();
$this
->
_recordLogin
(
$uid
,
true
);
}
/**
* 根据标示符(email或uid)和未加密的密码获取本地用户(密码为null时不参与验证)
* @param string $login 标示符内容(为数字时:标示符类型为uid,其他:标示符类型为email)
...
...
apps/basic/Lib/Action/PassportAction.class.php
View file @
5c86af7d
...
...
@@ -52,8 +52,10 @@ class PassportAction extends CommonAction
if
(
!
$uid
)
{
return
;
}
var_dump
(
$uid
);
die
;
$this
->
passport
->
wxLogin
(
$uid
);
if
(
model
(
'Passport'
)
->
isLogged
())
{
U
(
'classroom/Index/index'
,
''
,
true
);
//dengjb 个人中心
}
}
/**
...
...
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