Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵增煜
/
tzt-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
17d1b6d6
authored
Nov 29, 2024
by
赵增煜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
清除验证码
parent
a126c59e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
app/Api/Controllers/UserController.php
+4
-2
No files found.
app/Api/Controllers/UserController.php
View file @
17d1b6d6
...
...
@@ -163,8 +163,10 @@ public function bindRole(Request $request)
}
// 把所有user_id:$authInfo->id的置为0
PharmacyModel
::
where
(
'user_id'
,
$authInfo
->
id
)
->
update
([
'user_id'
=>
0
]);
$pharmacy
->
user_id
=
$authInfo
->
id
;
$pharmacy
->
save
();
// 重新绑定
PharmacyModel
::
where
(
''
,
$pharmacy
->
id
)
->
update
([
'user_id'
=>
$authInfo
->
id
]);
// $pharmacy->user_id = $authInfo->id;
// $pharmacy->save();
}
elseif
(
$login_type
==
User
::
LOGIN_TYPE_DOCTOR
)
{
$doctor
=
DoctorModel
::
query
()
->
where
(
'mobile'
,
$mobile
)
->
first
();
...
...
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