adiiconar ver log em pPilao
This commit is contained in:
parent
0e4e4c3cd5
commit
dc1b5171d7
16 changed files with 54 additions and 11 deletions
|
|
@ -18,11 +18,15 @@ export const serie_consultar = (cliente) => (tipoVisao, parametros) => {
|
|||
.then((r) => r.json())
|
||||
.catch((e) => respostaComuns.erro("Erro ao enviar registros", [e.message]))
|
||||
.then((r) => r);
|
||||
if (cliente.ver_log)
|
||||
console.log(`[PILÃO]: buscar dados de "${JSON.stringify(parametros)}" para "${url.href}".`);
|
||||
return resp;
|
||||
};
|
||||
const url = () => {
|
||||
const vUrl = new URL(`${urlPilao(cliente.emDesenvolvimento).site}/${tipoVisao}/${cliente.produto}/${cliente.conta}`);
|
||||
const serie = encodeURIComponent(JSON.stringify(parametros, null, 2));
|
||||
if (cliente.ver_log)
|
||||
console.log(`[PILÃO]: Serie Consultar url de "${JSON.stringify(serie)}" para "${vUrl.href}".`);
|
||||
return `${vUrl.href}?serie=${serie}`;
|
||||
};
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue