Commit ee04826a authored by hujun's avatar hujun

修改我得个人中心

parent ebdc5f6a
...@@ -31,12 +31,21 @@ class MyCenter extends Basic{ ...@@ -31,12 +31,21 @@ class MyCenter extends Basic{
/* $params = array( /* $params = array(
"agent_id" => 1 "agent_id" => 1
);*/ );*/
if(!isset($params["agent_id"])){ // if(!isset($params["agent_id"])){
return $this->response("101","请求参数错误"); // 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{ try{
$result = $this->service_->center($params["agent_id"]); $result = $this->service_->center($agent_id);
if($result){ if($result){
return $this->response("200","request success",$result); return $this->response("200","request success",$result);
}else{ }else{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment