cqpCow 11 months ago
parent
commit
f3c4c74ad7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/Service/OperationLogService.php

+ 2 - 0
app/Service/OperationLogService.php

@@ -200,6 +200,8 @@ class OperationLogService extends Service
         $result = array_filter(config('oa'), function ($array) use ($key, $value) {
         $result = array_filter(config('oa'), function ($array) use ($key, $value) {
             return $array[$key] == $value;
             return $array[$key] == $value;
         });
         });
+        $result = array_values($result);
+
         if (!isset($result[0]['children'])) return [true, ''];
         if (!isset($result[0]['children'])) return [true, ''];
         $result = $result[0];
         $result = $result[0];
         try {
         try {