DESKTOP-9JTA2JJ\HP 5 年 前
コミット
7034839f5a
1 ファイル変更4 行追加4 行削除
  1. 4 4
      api/application/controllers/Lampcontrol.php

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

@@ -57,10 +57,10 @@ class Lampcontrol extends Base_Controller {
         
         if (!empty($network_id)) $filter['L.networkid'] = $network_id;
         if (!empty($section)) $filter['L.section'] = $section;
-        // $offline = $this->input->post('offline', true);
-        // if (!empty($offline)) $filter['N.status'] = 0;
-        // $online = $this->input->post('online', true);
-        // if (!empty($online)) $filter['N.status'] = 1;
+        $offline = $this->input->post('offline', true);
+        if (!empty($offline)) $filter['L.netstatus'] = 0;
+        $online = $this->input->post('online', true);
+        if (!empty($online)) $filter['L.netstatus'] = 1;
 
         // 分页数据
         $page = intval($this->input->post('page',true));