rabin 3 年之前
父節點
當前提交
d322e8edd6
共有 1 個文件被更改,包括 6 次插入1 次删除
  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;