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
f67bc087
Commit
f67bc087
authored
Jun 13, 2025
by
wangtao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
管理后台 看板
parent
f9c1dd8e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
index.html
app/admin/view/index/index.html
+3
-1
User.php
app/api/controller/User.php
+2
-2
No files found.
app/admin/view/index/index.html
View file @
f67bc087
...
...
@@ -8,7 +8,9 @@
<link
rel=
"icon"
href=
"{PUBLIC__PATH}/favicon.ico"
/>
<link
rel=
"stylesheet"
href=
"{STATIC__PATH}layui/css/layui.css"
/>
<link
rel=
"stylesheet"
href=
"{STATIC__PATH}admin/admin.css"
/>
<!--[if lt IE 9]>
<meta
name=
"referrer"
content=
"no-referrer"
>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
...
...
app/api/controller/User.php
View file @
f67bc087
...
...
@@ -22,7 +22,7 @@ class User extends BaseController
return
$vo
;
}
$data
=
$request
->
param
();
$user
=
userModel
::
where
([
'mobile'
=>
$data
[
'mobile'
]])
->
find
();
$user
=
userModel
::
where
([
'mobile'
=>
$data
[
'mobile'
]])
->
where
(
'is_del'
,
0
)
->
find
();
if
(
!
$user
)
{
return
$this
->
returnMsg
(
'用户不存在'
,
0
);
...
...
@@ -59,7 +59,7 @@ class User extends BaseController
}
$data
=
$request
->
param
();
$is_exit
=
userModel
::
where
([
'mobile'
=>
$data
[
'mobile'
]])
->
where
Or
([
'username'
=>
$data
[
'name'
]]
)
->
count
();
$is_exit
=
userModel
::
where
([
'mobile'
=>
$data
[
'mobile'
]])
->
where
(
'is_del'
,
0
)
->
count
();
if
(
$is_exit
)
{
return
$this
->
returnMsg
(
'用户已存在'
,
0
);
...
...
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