|
@@ -553,6 +553,7 @@ class Lampcontrol extends Base_Controller {
|
|
|
$temp['projectid'] = $data['projectid'];
|
|
|
// $this->Network_model->minus_lamp_count($data);
|
|
|
$this->Project_model->minus_lamp_count($temp);
|
|
|
+ $this->RealtimeInfoLog_model->delete(['lampid'=>$data['id']]);
|
|
|
// $netData = $this->Network_model->getOne($data['networkid'],'gatewaytype,protocoltype');
|
|
|
// if ($netData['protocoltype'] == 6) $this->remove_device('00000000'.$data['address']);
|
|
|
// if (isset($netData) && $netData['gatewaytype'] == 'direct' && !empty($data['networkid'])) {// 直连设备
|