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
49d6f7b8
Commit
49d6f7b8
authored
Feb 28, 2018
by
zfc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
b端h5客户新增添加id返回值
parent
fc18daa6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
Client.php
application/api_broker/controller/Client.php
+14
-5
No files found.
application/api_broker/controller/Client.php
View file @
49d6f7b8
...
...
@@ -41,25 +41,34 @@ class Client extends Basic
*/
public
function
editClient
()
{
header
(
'Access-Control-Allow-Origin:*'
);
$data
=
array
();
if
(
$this
->
params
[
'user_nick'
]
||
$this
->
params
[
'user_nick'
]
||
$this
->
params
[
'id'
])
{
if
(
$this
->
request
->
isPost
())
{
if
(
$this
->
params
[
'id'
])
{
$
this
->
data
=
$this
->
user
->
edit
(
$this
->
params
,
$this
->
params
[
'id'
]);
$
data
[
'start'
]
=
$this
->
user
->
edit
(
$this
->
params
,
$this
->
params
[
'id'
]);
}
else
{
$
this
->
data
=
$this
->
user
->
edit
(
$this
->
params
);
if
(
$
this
->
data
==
-
1
)
{
$
data
[
'start'
]
=
$this
->
user
->
edit
(
$this
->
params
);
if
(
$
data
[
'start'
]
==
-
1
)
{
$this
->
code
=
101
;
$this
->
msg
=
'该用户已存在'
;
}
if
(
$data
[
'start'
]
==
1
){
$data
[
'id'
]
=
$this
->
user
->
id
;
}
else
{
$this
->
code
=
101
;
$this
->
msg
=
'提交重复!'
;
}
}
}
else
{
$
this
->
data
=
$this
->
user
->
getClient
(
$this
->
params
[
'id'
]);
$
data
[
'start'
]
=
$this
->
user
->
getClient
(
$this
->
params
[
'id'
]);
}
}
else
{
$this
->
code
=
101
;
$this
->
msg
=
'user_nick or user_phone or id is null'
;
}
return
$this
->
response
(
$this
->
code
,
$this
->
msg
,
$
this
->
data
);
return
$this
->
response
(
$this
->
code
,
$this
->
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