get("key", null); $kfs = new KfService(); if ($boolUrl = $kfs->getOriginMedia($key)) { return response(array( 'code' => 200, 'message' => 'success', 'data' => [ 'url' => $boolUrl ] )); } else { return response(array( 'code' => 404, 'message' => 'no media' )); } } }