Commit 7094139f authored by hujun's avatar hujun

经纪人设备禁用

parent 037333b3
...@@ -183,6 +183,20 @@ class BrokerService ...@@ -183,6 +183,20 @@ class BrokerService
return $result; return $result;
} }
//同时修改设备绑定表
try {
$m_agent_device = new ABindingDevice();
if ($data['status'] != 0) {
$update_where['agent_id'] = $data['id'];
$m_agent_device->updateDate(['is_forbidden' => 1], $update_where);
}
} catch (\Exception $e) {
$result['status'] = 'fail';
$result['msg'] = '设备解绑失败';
return $result;
}
if ($data['status'] != 0) { if ($data['status'] != 0) {
$where['a.id'] = $data['id']; $where['a.id'] = $data['id'];
$where['b.status'] = 1; $where['b.status'] = 1;
......
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