DESKTOP-9JTA2JJ\HP hace 5 años
padre
commit
e79cabc312
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. 6 1
      api/application/controllers/Home.php

+ 6 - 1
api/application/controllers/Home.php

@@ -679,7 +679,12 @@ class Home extends Base_Controller {
         foreach ($tempstatus as $key => $value) {
             $list[] = ['name'=>$value,'value'=>'4'.$key];
         }
-        exit(json_result('0000',$this->response['0000'],$list));
+        if ($this->version == 2) {
+            exit(json_result('0000',$this->response['0000'],['list'=>$list]));
+        }else{
+            exit(json_result('0000',$this->response['0000'],$list));
+        }
+        
     }
 
     // 省级设备数量