Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
projecttwo
Project
Project
Details
Activity
Releases
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
wangtao
projecttwo
Commits
4f4e31a5
Commit
4f4e31a5
authored
May 14, 2025
by
wangzhengwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
5.14.2
parent
e15a738b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
UserService.php
app/api/service/UserService.php
+0
-1
User.php
app/model/project/User.php
+2
-2
No files found.
app/api/service/UserService.php
View file @
4f4e31a5
...
...
@@ -18,7 +18,6 @@ class UserService
{
return
false
;
}
$user
=
userModel
::
where
([
'token'
=>
$token
,
'is_del'
=>
0
])
// ->field('id,username,mobile,realname,token,role')
->
with
([
'headico'
,
'zfb'
])
...
...
app/model/project/User.php
View file @
4f4e31a5
...
...
@@ -28,7 +28,7 @@ class User extends Model
public
function
headico
()
{
return
$this
->
hasOne
(
SystemUploadFile
::
class
,
'fileid'
,
'headico'
)
->
where
(
'is
_
del'
,
0
)
->
where
(
'isdel'
,
0
)
->
field
(
'fileid,filename,filesize,fileurl,filetype'
);
}
...
...
@@ -37,7 +37,7 @@ class User extends Model
return
$this
->
hasOne
(
UserAccount
::
class
,
'user_id'
,
'id'
)
->
where
(
'type'
,
0
)
->
where
(
'is_del'
,
0
)
->
field
(
'account,id,user_id'
);
->
field
(
'account,id,user_id
,is_del
'
);
}
//获取头像
...
...
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