Commit 64c5479c authored by clone's avatar clone

1

parent 4ea9b279
......@@ -1179,5 +1179,27 @@ class Broker extends Basic
return $this->response("200", "成功", $data);
}
/**
* @return \think\Response
*/
public function deviceList()
{
$agent_id = $this->request->param("agent_id");
if (!$agent_id) {
return $this->response(101, '经纪人id不能为空');
}
$aBD = new ABindingDevice();
$params["agent_id"] = $agent_id;
$field = "id,agent_id,device_id,model,is_forbidden,is_pc,create_time,update_time";
$result = $aBD->getDeviceNewByAgentId($params, $field);
if (count($result) > 0) {
return $this->response("200", "success", $result);
} else {
return $this->response("101", "此账号未绑定过设备");
}
}
}
\ No newline at end of file
This diff is collapsed.
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