MS-PDRLKVHCADMG\Administrator %!s(int64=5) %!d(string=hai) anos
pai
achega
995b3c86e9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {