From d85bf37237e10f443e4e8434454623635630c9e5 Mon Sep 17 00:00:00 2001
From: GabrielPintoSouza
Date: Fri, 3 Jan 2025 10:34:52 -0300
Subject: [PATCH 01/11] =?UTF-8?q?Resolu=C3=A7=C3=A3o=20erro=20500=20em=20r?=
=?UTF-8?q?elatorios=5Fsocios.php=20[Issue=20#882]?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
html/socio/sistema/relatorios_socios.php | 1 -
1 file changed, 1 deletion(-)
diff --git a/html/socio/sistema/relatorios_socios.php b/html/socio/sistema/relatorios_socios.php
index dd519dba..9dd2b8f1 100644
--- a/html/socio/sistema/relatorios_socios.php
+++ b/html/socio/sistema/relatorios_socios.php
@@ -1,6 +1,5 @@
Date: Fri, 3 Jan 2025 11:09:47 -0300
Subject: [PATCH 02/11] =?UTF-8?q?Altera=C3=A7=C3=A3o=20da=20mensagem=20de?=
=?UTF-8?q?=20descri=C3=A7=C3=A3o=20do=20Pix=20[Issue=20#881]?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
html/contribuicao/controller/ContribuicaoLogController.php | 6 +++++-
html/contribuicao/service/PagarMePixService.php | 6 +++---
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/html/contribuicao/controller/ContribuicaoLogController.php b/html/contribuicao/controller/ContribuicaoLogController.php
index 15b8e83c..7bb44cbe 100755
--- a/html/contribuicao/controller/ContribuicaoLogController.php
+++ b/html/contribuicao/controller/ContribuicaoLogController.php
@@ -452,7 +452,11 @@ public function criarQRCode()
caso o serviço de pagamento tenha sido executado*/
$this->pdo->beginTransaction();
$contribuicaoLogDao = new ContribuicaoLogDAO($this->pdo);
- $contribuicaoLogDao->criar($contribuicaoLog);
+ $contribuicaoLog = $contribuicaoLogDao->criar($contribuicaoLog);
+
+ //Adicionar mensagem de agradecimento
+ $agradecimento = $contribuicaoLogDao->getAgradecimento();
+ $contribuicaoLog->setAgradecimento($agradecimento);
//Registrar na tabela de socio_log
$mensagem = "Pix gerado recentemente";
diff --git a/html/contribuicao/service/PagarMePixService.php b/html/contribuicao/service/PagarMePixService.php
index e524b87e..4c2e4b40 100644
--- a/html/contribuicao/service/PagarMePixService.php
+++ b/html/contribuicao/service/PagarMePixService.php
@@ -18,7 +18,7 @@ public function gerarQrCode(ContribuicaoLog $contribuicaoLog)
}
// Configuração dos dados para a API
- $description = 'Doação';
+ $description = $contribuicaoLog->getAgradecimento();
$expires_in = 3600;
$headers = [
@@ -63,8 +63,8 @@ public function gerarQrCode(ContribuicaoLog $contribuicaoLog)
'expires_in' => $expires_in,
'additional_information' => [
[
- 'name' => 'Teste',
- 'value' => '1'
+ 'name' => "Doação via pix",
+ 'value' => "{$contribuicaoLog->getValor()}"
]
]
]
From 35d374736cec39082ed297bb3cd55fa6286050ad Mon Sep 17 00:00:00 2001
From: GabrielPintoSouza
Date: Fri, 3 Jan 2025 12:40:15 -0300
Subject: [PATCH 03/11] =?UTF-8?q?Resolu=C3=A7=C3=A3o=20XSS=20[Issue=20#875?=
=?UTF-8?q?]?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../import_conteudo_editarsocios.php | 547 +++++++++---------
html/socio/sistema/editar_socio.php | 254 ++++----
2 files changed, 419 insertions(+), 382 deletions(-)
diff --git a/html/socio/sistema/controller/import_conteudo_editarsocios.php b/html/socio/sistema/controller/import_conteudo_editarsocios.php
index 8e898e8d..42a525da 100755
--- a/html/socio/sistema/controller/import_conteudo_editarsocios.php
+++ b/html/socio/sistema/controller/import_conteudo_editarsocios.php
@@ -1,295 +1,320 @@
+
+
+ if (sociotipo >= 0 && sociotipo <= 13) {
+ console.log("boleto");
+ } else if (sociotipo >= 10 && sociotipo <= 31) {
+ $("#tipo_contribuicao").val("2");
+ console.log("cartão");
+ } else {
+ $("#tipo_contribuicao").val("3");
+ console.log("outro");
+ }
+
\ No newline at end of file
diff --git a/html/socio/sistema/editar_socio.php b/html/socio/sistema/editar_socio.php
index 3065da63..23d0d7f6 100755
--- a/html/socio/sistema/editar_socio.php
+++ b/html/socio/sistema/editar_socio.php
@@ -1,159 +1,171 @@
+