|
@@ -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) {
|