✏️ 正在编辑: AutomacoesController.php
路径:
/srv/systems_dir/yuppiecred-bkp/application/controllers/AutomacoesController.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php use Yuppie_Core_Secret as Secret; use Zend_Controller_Action as ZendController; use Modules\Automatizacao\Service\AutomacoesService; use Modules\Relatorio\Service\RelatorioSemanalService; use Modules\Automatizacao\Model\DbTable\AutomatizacaoTable; /** * @sem_permissao */ class AutomacoesController extends ZendController { /** @var string */ public const ERRO = 'Ocorreu um erro durante a solicitação.'; public function init() { try { Secret::valid($this->getRequest(), 'yuppiecred'); } catch (Throwable $throwable) { echo $throwable->getMessage(); die(); } $this->_helper->viewRenderer->setNoRender(); $this->_helper->layout->disableLayout(); parent::init(); } public function oportunidadesNegociosAction() { try { $this->_helper->json(['success' => AutomacoesService::oportunidadesNegocio()]); } catch (Throwable $throwable) { $this->_helper->json(['erro' => $throwable->getTraceAsString()]); } } public function desempenhoGerenteSemanalAction() { try { if ((new AutomatizacaoTable())->first()->isProdutividadeSupervisores()) { (new RelatorioSemanalService())->sendProdutividadeSupervisor(); } } catch (Throwable $throwable) { echo $throwable->getMessage(); die(); } } public function importacaoDiretaFactaAction() { try { AutomacoesService::importacaoDiretaBanco('FACTA'); } catch (Throwable $throwable) { Yuppie_Log::write('Falha na importação direta FACTA. ' . $throwable->getMessage()); } } public function atualizacaoStatusPanAction() { try { AutomacoesService::importacaoDiretaBanco('API_PAN'); } catch (Throwable $throwable) { Yuppie_Log::write('Falha na atualização do status PAN . ' . $throwable->getMessage()); } } public function enviarNotificacoesAction() { try { AutomacoesService::enviarNotificacoes(); } catch (Throwable $throwable) { Yuppie_Log::write('Falha no envio das notificações . ' . $throwable->getMessage()); } } public function atualizarContratosMercantilAction() { try { AutomacoesService::importacaoDiretaBanco('FGTS_MERCANTIL'); } catch (Throwable $throwable) { Yuppie_Log::write('Falha na atualização dos contratos Mercantil . ' . $throwable->getMessage()); } } public function atualizarContratosC6bankAction() { try { AutomacoesService::importacaoDiretaBanco('FGTS_C6BANK'); } catch (Throwable $throwable) { Yuppie_Log::write('Falha na atualização dos contratos C6BANK . ' . $throwable->getMessage()); } } }
💾 保存文件
← 返回文件管理器