Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
media-resource
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨昕
media-resource
Commits
ca32dd2b
Commit
ca32dd2b
authored
Aug 19, 2020
by
杨昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
53b02619
Pipeline
#10728
passed with stages
in 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
LoginController.php
app/Http/Controllers/Web/LoginController.php
+10
-2
No files found.
app/Http/Controllers/Web/LoginController.php
View file @
ca32dd2b
...
...
@@ -82,6 +82,14 @@ class LoginController extends Controller
$userid
=
$userInfo
[
'data'
][
'userid'
];
$mis_uid
=
$userid
;
$flag
=
UserModel
::
where
(
"_id"
,
$user
->
_id
)
->
update
([
'mis_uid'
=>
$userid
]);
if
(
!
$flag
){
LogModel
::
addlog
([
'更新用户mis_uid失败'
=>
json_encode
([
'mis_uid'
=>
$userid
])]);
throw
new
\Exception
(
"更新用户mis_uid失败"
);
}
}
else
{
$mis_uid
=
$user
->
mis_uid
;
}
...
...
@@ -124,10 +132,10 @@ class LoginController extends Controller
Auth
::
login
(
$user
);
return
$user
;
}
else
{
throw
new
\Exception
(
'用户验证失败'
);
}
throw
new
\Exception
(
'用户验证失败'
);
});
return
success
(
$user
);
...
...
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