Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
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
hujun
tl_estate
Commits
f3e7e7f8
Commit
f3e7e7f8
authored
Jul 10, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改新增客户
parent
e8c26505
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
26 deletions
+2
-26
Member.php
application/index/controller/Member.php
+2
-26
No files found.
application/index/controller/Member.php
View file @
f3e7e7f8
...
...
@@ -267,7 +267,7 @@ class Member extends Basic{
}
/**
* 新增
或编辑用
户
* 新增
客
户
*
* @return \think\Response
* @throws \think\exception\DbException
...
...
@@ -275,7 +275,7 @@ class Member extends Basic{
public
function
user_add
()
{
$params
=
$this
->
request
->
param
();
$status
=
101
;
$data
=
''
;
$data
=
$msg
=
''
;
if
(
empty
(
$params
[
'id'
]))
{
$user_data
=
$this
->
user
->
get
([
'user_phone'
=>
$params
[
'user_phone'
]]);
...
...
@@ -283,8 +283,6 @@ class Member extends Basic{
$user_data
=
$this
->
user
->
get
(
$params
[
'id'
]);
}
$date
=
date
(
'Y-m-d H:i:s'
);
if
(
!
check_phone
(
$params
[
'user_phone'
]))
{
return
$this
->
response
(
$status
,
'手机号错误'
);
}
...
...
@@ -298,28 +296,6 @@ class Member extends Basic{
}
else
{
$msg
=
'新增用户失败'
;
}
}
else
{
// if (!empty($user_data) && $params['type'] == 'edit'){
// $insert_data['sex'] = $params['sex'];
// $user_data->user_nick = $params['realname'] ? $params['realname'] : $user_data->user_nick;
// $user_data->user_phone = $params['user_phone'] ? $params['user_phone'] : $user_data->user_phone;
// $user_data->user_pswd = $params['pwd'] != $user_data->user_pswd ? md5(md5($params['pwd']).'+123') : $user_data->user_pswd;
// $user_data->status = $params['status'] ? $params['status'] : $user_data->status;
// $user_data->update_time = $date;
//
// $user_data->save();
//
// if ($user_data->id) {
// $status = 200;
// $data = ['id'=>$user_data->id];
// $msg = '编辑用户成功';
// } else {
// $msg = '编辑用户失败';
// }
// } else {
// $msg = '该用户已存在';
// $status = 101;
// }
}
return
$this
->
response
(
$status
,
$msg
,
$data
);
...
...
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