Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
backend
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
亲子游项目
backend
Commits
48fcc5b2
Commit
48fcc5b2
authored
Dec 26, 2018
by
LiuJunYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台手机号修改
parent
759edfce
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
75 additions
and
45 deletions
+75
-45
application/admin/controller/User.php
+14
-0
application/admin/view/user/index.html
+61
-45
No files found.
application/admin/controller/User.php
View file @
48fcc5b2
...
...
@@ -9,6 +9,7 @@
namespace
app\admin\controller
;
use
app\admin\controller\AuthBase
;
use
app\admin\controller\OutputExcel
;
use
think\Exception
;
class
User
extends
AuthBase
{
...
...
@@ -114,4 +115,16 @@ class User extends AuthBase
$obj
=
new
OutputExcel
();
$obj
->
export
(
$mulit_arr
,
$filename
,
$title
,
$Subject
,
$Description
,
$Keywords
,
$Category
);
}
public
function
changePhone
()
{
if
(
request
()
->
isAjax
()){
try
{
\app\common\model\User
::
update
(
input
(
'post.'
));
}
catch
(
Exception
$e
){
return
json
([
'code'
=>
1
,
'msg'
=>
'手机号重复,修改失败'
]);
}
return
json
([
'code'
=>
0
,
'msg'
=>
'修改成功'
]);
}
}
}
\ No newline at end of file
application/admin/view/user/index.html
View file @
48fcc5b2
This diff is collapsed.
Click to expand it.
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