behavior = $behavior; } public function index($request) { try { $app = config('constants.VIRUS_APP_ID'); $signKey = [ 'app' => config('constants.VIRUS_APP_ID') ]; ksort($signKey); $signKey = urldecode(http_build_query($signKey)); $sign = md5(config('constants.VIRUS_APP_SECRET') . $signKey); $url = config("customer.manage_service_url") . '/virus/behaviorList'; $array = [ 'json' => ['app' => $app,'sign' => $sign], 'query' => [], 'http_errors' => false, 'headers' => ['Authorization' => "Bearer " . JWTAuth::getToken()] ]; return http($url, $array, 'get'); } catch (\Exception $e) { return []; } } }