Commit 8aa042226a9d35f734166f64004f84c547721024
1 parent
009f341c
Exists in
master
Correção de método alterado por engano.
Showing
1 changed file
with
15 additions
and
21 deletions
Show diff stats
MdWsSeiRest.php
| @@ -277,29 +277,23 @@ class MdWsSeiRest extends SeiIntegracao | @@ -277,29 +277,23 @@ class MdWsSeiRest extends SeiIntegracao | ||
| 277 | 277 | ||
| 278 | public function adicionarElementoMenu() | 278 | public function adicionarElementoMenu() |
| 279 | { | 279 | { |
| 280 | - try{ | ||
| 281 | - $nomeArquivo = 'QRCODE_' | ||
| 282 | - . self::NOME_MODULO | ||
| 283 | - . "_" | ||
| 284 | - . SessaoSEI::getInstance()->getNumIdOrgaoUsuario() | ||
| 285 | - . "_" | ||
| 286 | - . SessaoSEI::getInstance()->getNumIdContextoUsuario() | ||
| 287 | - . "_" | ||
| 288 | - . self::getVersao(); | ||
| 289 | - $html = CacheSEI::getInstance()->getAtributo($nomeArquivo); | ||
| 290 | - | ||
| 291 | - if ($html) { | ||
| 292 | - return $html; | ||
| 293 | - } | ||
| 294 | - | ||
| 295 | - $html = $this->montaCorpoHTMLQRCode($nomeArquivo); | ||
| 296 | - CacheSEI::getInstance()->setAtributo($nomeArquivo, $html, CacheSEI::getInstance()->getNumTempo()); | ||
| 297 | - } | ||
| 298 | - catch(Exception $e){ | ||
| 299 | - LogSEI::getInstance()->gravar(InfraException::inspecionar($e)); | ||
| 300 | - throw $e; | 280 | + $nomeArquivo = 'QRCODE_' |
| 281 | + . self::NOME_MODULO | ||
| 282 | + . "_" | ||
| 283 | + . SessaoSEI::getInstance()->getNumIdOrgaoUsuario() | ||
| 284 | + . "_" | ||
| 285 | + . SessaoSEI::getInstance()->getNumIdContextoUsuario() | ||
| 286 | + . "_" | ||
| 287 | + . self::getVersao(); | ||
| 288 | + $html = CacheSEI::getInstance()->getAtributo($nomeArquivo); | ||
| 289 | + | ||
| 290 | + if ($html) { | ||
| 291 | + return $html; | ||
| 301 | } | 292 | } |
| 302 | 293 | ||
| 294 | + $html = $this->montaCorpoHTMLQRCode($nomeArquivo); | ||
| 295 | + CacheSEI::getInstance()->setAtributo($nomeArquivo, $html, CacheSEI::getInstance()->getNumTempo()); | ||
| 296 | + | ||
| 303 | return $html; | 297 | return $html; |
| 304 | } | 298 | } |
| 305 | 299 |