fcy 4 years ago
parent
commit
6a012909d7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/web/controller/IndexController.php

+ 1 - 1
application/web/controller/IndexController.php

@@ -213,7 +213,7 @@ class IndexController extends MainController
             $v['TEMPERTHRESHOLD'] = array_key_exists((int)$v['TEMPERTHRESHOLD'],$arr)?$arr[(int)$v['TEMPERTHRESHOLD']]:'80℃';
             $v['TEMPERTHRESHOLD'] = array_key_exists((int)$v['TEMPERTHRESHOLD'],$arr)?$arr[(int)$v['TEMPERTHRESHOLD']]:'80℃';
             $v['STATUS'] = $sta[is_null($v['STATUS'])? 3:$v['STATUS']];
             $v['STATUS'] = $sta[is_null($v['STATUS'])? 3:$v['STATUS']];
         }
         }
-
+		$num=Db::table('deviceinfo')->where(array('PRIMARYADDR'=>$PRIMARYADDR))->count();
         $this->api_return_json(compact('deviceinfo'), 1);
         $this->api_return_json(compact('deviceinfo'), 1);
 
 
     }
     }