dever 3 years ago
parent
commit
b48a5b7ccd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      service/agent/lib/Manage.php

+ 1 - 1
service/agent/lib/Manage.php

@@ -12,7 +12,7 @@ class Manage
         Dever::config('base')->hook = true;
         $area = Dever::param('area', $data);
         $role = Dever::param('role', $data);
-        if ($area) {
+        if ($area && is_array($area)) {
             $area_string = implode(',', $area);
             if (strstr($area_string, '-1')) {
                 Dever::alert('请选择正确的区域');