MS-PDRLKVHCADMG\Administrator il y a 5 ans
Parent
commit
995b3c86e9
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      api/application/controllers/Lampcontrol.php

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

@@ -1793,7 +1793,7 @@ class Lampcontrol extends Base_Controller {
 
             $value['createtime'] = date('Y-m-d H:i:s',time());
             $value['projectid'] = $projectid;
-            $lamp_id = $this->Lamp_model->add($value);
+            if ($type != 1) $this->Lamp_model->add($value);
         }
 
         if ($res || $type == 1) {