rabin 3 years ago
parent
commit
d322e8edd6
1 changed files with 6 additions and 1 deletions
  1. 6 1
      service/agent/src/My.php

+ 6 - 1
service/agent/src/My.php

@@ -355,7 +355,12 @@ class My extends Core
         if ($info) {
             $this->data['state'] = 1;
         } else {
-            $this->data['state'] = 2;
+            $state = Dever::load('area/api')->getStatus($where['area']);
+            if ($state) {
+                $this->data['state'] = 1;
+            } else {
+                $this->data['state'] = 2;
+            }
         }
 
         return $this->data;