DESKTOP-9JTA2JJ\HP 5 anos atrás
pai
commit
d9b677bc14
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      api/application/controllers/Lampcontrol.php

+ 1 - 1
api/application/controllers/Lampcontrol.php

@@ -930,7 +930,7 @@ class Lampcontrol extends Base_Controller {
             $temp['lampcount'] = 1;
             $temp['projectid'] = $data['projectid'];
             // $this->Network_model->minus_lamp_count($data);
-            $this->Project_model->minus_lamp_count($data);
+            $this->Project_model->minus_lamp_count($temp);
             // $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'])) {// 直连设备