Commit c4108ece3259c45577395bb3bbcab77b5e1a835d
1 parent
a567b75a
Exists in
master
and in
1 other branch
Ajuste no retorno da recuperação de usuários, para que seja corrigido o problema de encode
Showing
1 changed file
with
8 additions
and
5 deletions
Show diff stats
rn/MdWsSeiUsuarioRN.php
| @@ -202,17 +202,20 @@ class MdWsSeiUsuarioRN extends InfraRN { | @@ -202,17 +202,20 @@ class MdWsSeiUsuarioRN extends InfraRN { | ||
| 202 | ); | 202 | ); |
| 203 | } | 203 | } |
| 204 | 204 | ||
| 205 | - $arrPerfis = array(); | ||
| 206 | $retPerfis = $this->listarPerfisUsuario($ret->IdSistema, $ret->IdUsuario); | 205 | $retPerfis = $this->listarPerfisUsuario($ret->IdSistema, $ret->IdUsuario); |
| 207 | - if($retPerfis && $retPerfis['data']){ | 206 | + |
| 207 | + /* ANTIGA | ||
| 208 | + | ||
| 209 | + if($retPerfis && $retPerfis['data']){ | ||
| 208 | $arrPerfis = $retPerfis['data']; | 210 | $arrPerfis = $retPerfis['data']; |
| 209 | - } | 211 | + }*/ |
| 210 | 212 | ||
| 211 | return MdWsSeiRest::formataRetornoSucessoREST( | 213 | return MdWsSeiRest::formataRetornoSucessoREST( |
| 212 | null, | 214 | null, |
| 213 | array( | 215 | array( |
| 214 | 'loginData'=> $ret, | 216 | 'loginData'=> $ret, |
| 215 | - 'perfis' => $arrPerfis, | 217 | + // ANTIGA 'perfis' => $arrPerfis, |
| 218 | + 'perfis' => $retPerfis, | ||
| 216 | 'unidades' => $arrUnidades, | 219 | 'unidades' => $arrUnidades, |
| 217 | 'token' => $token | 220 | 'token' => $token |
| 218 | ) | 221 | ) |
| @@ -246,7 +249,7 @@ class MdWsSeiUsuarioRN extends InfraRN { | @@ -246,7 +249,7 @@ class MdWsSeiUsuarioRN extends InfraRN { | ||
| 246 | ); | 249 | ); |
| 247 | } | 250 | } |
| 248 | 251 | ||
| 249 | - return MdWsSeiRest::formataRetornoSucessoREST(null, $arrPerfis); | 252 | + return $arrPerfis; |
| 250 | 253 | ||
| 251 | }catch (Exception $e){ | 254 | }catch (Exception $e){ |
| 252 | return MdWsSeiRest::formataRetornoErroREST($e); | 255 | return MdWsSeiRest::formataRetornoErroREST($e); |