MS-PDRLKVHCADMG\Administrator 5 年 前
コミット
995b3c86e9
1 ファイル変更1 行追加1 行削除
  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) {