From 1d772fdd53cb0388f3ceadead69ebec178a8ae75 Mon Sep 17 00:00:00 2001 From: lizandrogd <77708265+lizandrogd@users.noreply.github.com> Date: Mon, 6 Nov 2023 19:29:35 -0500 Subject: [PATCH 1/6] update --- .env | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.env b/.env index 290b041..c40ebfb 100644 --- a/.env +++ b/.env @@ -9,11 +9,11 @@ LOG_DEPRECATIONS_CHANNEL=null LOG_LEVEL=debug DB_CONNECTION=mysql -DB_HOST=82.180.168.2 +DB_HOST=195.35.32.59 DB_PORT=3306 -DB_DATABASE=u111286300_sir -DB_USERNAME=u111286300_sir -DB_PASSWORD=Colombia2022* +DB_DATABASE=sirpremium +DB_USERNAME=pym +DB_PASSWORD=Nicolas2796*+ BROADCAST_DRIVER=log CACHE_DRIVER=file From 777048e683c86417aaf00ca9924b6f25adc7e225 Mon Sep 17 00:00:00 2001 From: lizandrogd <77708265+lizandrogd@users.noreply.github.com> Date: Mon, 6 Nov 2023 20:20:25 -0500 Subject: [PATCH 2/6] u --- resources/views/livewire/show-servicios.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/livewire/show-servicios.blade.php b/resources/views/livewire/show-servicios.blade.php index c97f855..f30f7ac 100644 --- a/resources/views/livewire/show-servicios.blade.php +++ b/resources/views/livewire/show-servicios.blade.php @@ -391,7 +391,7 @@ @php $n = 0; @endphp - {{ dd($cuentas->cuentas) }} + @foreach ($cuentas->cuentas->unique() as $cuenta) @php $n++; From 5f0416c178bff1dbda135141de2fe568bfd0edf8 Mon Sep 17 00:00:00 2001 From: lizandrogd <77708265+lizandrogd@users.noreply.github.com> Date: Mon, 6 Nov 2023 22:11:57 -0500 Subject: [PATCH 3/6] u --- app/Http/Livewire/ShowPromociones.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/app/Http/Livewire/ShowPromociones.php b/app/Http/Livewire/ShowPromociones.php index 4b312bf..bc7aec3 100644 --- a/app/Http/Livewire/ShowPromociones.php +++ b/app/Http/Livewire/ShowPromociones.php @@ -316,6 +316,25 @@ class ShowPromociones extends Component 'confirmButtonText' => 'Sí, comprar.', ]); } + }else{ + + + $descuento = Saldo::where('usuario_id', Auth::user()->id)->first(); + $saldo_anterior = $descuento->valor; + $nuevo_saldo = $saldo_anterior - ($this->precioAhora *$this->cantidad_comprarPromo); + $cobro = $descuento->update(['valor' => $nuevo_saldo]); + //dd($cobro); + if ($cobro) { + $historial->update(['estado' => 'activo']); + $this->modalComprarPromo = false; + $this->credenciales($historial); + + } else { + $eliminar = Historial_cuenta::whereIn('id',$this->n)->delete(); + //dd($eliminar); + $this->alert('warning', 'Error en el cobro, comuniquese con soporte!', [ + 'position' => 'top']); + } } } From 896f93313b50ead1f09f1c27f59ad0bcab6a4fae Mon Sep 17 00:00:00 2001 From: lizandrogd <77708265+lizandrogd@users.noreply.github.com> Date: Mon, 6 Nov 2023 22:33:47 -0500 Subject: [PATCH 4/6] update de index promo --- app/Http/Livewire/ShowIndexPromo.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Livewire/ShowIndexPromo.php b/app/Http/Livewire/ShowIndexPromo.php index 0d176d9..610866c 100644 --- a/app/Http/Livewire/ShowIndexPromo.php +++ b/app/Http/Livewire/ShowIndexPromo.php @@ -63,10 +63,10 @@ class ShowIndexPromo extends Component if (is_null($usuario_existe)) { $usuario = new User; - $usuario->name = $this->nombre_tarjetaPlan; - $usuario->email = $this->email_tarjetaPlan; + $usuario->name = $this->nombre_comprarPromo; + $usuario->email = $this->email_comprarPromo; $usuario->password = '123'; - $usuario->celular = $this->celular_tarjetaPlan; + $usuario->celular = $this->celular_comprarPromo; $usuario->save(); $usuario_id = $usuario->id; From 44dd1299cf77a63b457089570fce222aa91ddcdc Mon Sep 17 00:00:00 2001 From: lizandrogd <77708265+lizandrogd@users.noreply.github.com> Date: Mon, 6 Nov 2023 22:47:44 -0500 Subject: [PATCH 5/6] espacio promociones --- resources/views/livewire/show-promociones.blade.php | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/views/livewire/show-promociones.blade.php b/resources/views/livewire/show-promociones.blade.php index 9ebca0a..6baa334 100644 --- a/resources/views/livewire/show-promociones.blade.php +++ b/resources/views/livewire/show-promociones.blade.php @@ -1004,6 +1004,7 @@ @if (!empty($cuenta->servicio->ver_url)) *URL:* {{ $cuenta->servicio->url }} @else + *Servicio:* {{ $cuenta->servicio->nombre }} @foreach ($cuenta->perfil as $perfil) @if ($cuentas->id == $perfil->historial_id && $cuenta->estado == 'activo') - Perfil {{ $perfil->perfil }} @if (!empty($cuenta->servicio->perfiles)) From bfbad2b508f55aefd30b5d02a6f0714d4d4aa3e4 Mon Sep 17 00:00:00 2001 From: lizandrogd <77708265+lizandrogd@users.noreply.github.com> Date: Mon, 6 Nov 2023 23:08:26 -0500 Subject: [PATCH 6/6] update de kernel eliminacin del schudale de email --- app/Console/Kernel.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 3b739cf..881838a 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -31,8 +31,9 @@ class Kernel extends ConsoleKernel protected function schedule(Schedule $schedule) - { - $schedule->exec('nohup php /home/u111286300/domains/sirpremium.com.co/public_html/app/artisan queue:work --sleep=3 --tries=3 > /dev/null 2>&1 &')->everyMinute(); + { + + //$schedule->exec('nohup php /var/www/sirpremium/artisan queue:work --sleep=3 --tries=3 > /dev/null 2>&1 &')->everyMinute(); $schedule->call(function () { $fechaHoy = Carbon::now();