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
ee04826a
Commit
ee04826a
authored
Mar 27, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改我得个人中心
parent
ebdc5f6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
MyCenter.php
application/api_broker/controller/MyCenter.php
+12
-3
No files found.
application/api_broker/controller/MyCenter.php
View file @
ee04826a
...
...
@@ -31,12 +31,21 @@ class MyCenter extends Basic{
/* $params = array(
"agent_id" => 1
);*/
if
(
!
isset
(
$params
[
"agent_id"
])){
return
$this
->
response
(
"101"
,
"请求参数错误"
);
// if(!isset($params["agent_id"])){
// return $this->response("101","请求参数错误");
// }
if
(
empty
(
$params
[
'agent_id'
]))
{
if
(
empty
(
$this
->
agentId
))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
$agent_id
=
$this
->
agentId
;
}
else
{
$agent_id
=
$params
[
"agent_id"
];
}
try
{
$result
=
$this
->
service_
->
center
(
$
params
[
"agent_id"
]
);
$result
=
$this
->
service_
->
center
(
$
agent_id
);
if
(
$result
){
return
$this
->
response
(
"200"
,
"request success"
,
$result
);
}
else
{
...
...
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