✏️ 正在编辑: CallcenterIndicaAtendimentoCorretor.php
路径:
/srv/systems_dir/yuppiecred-bkp/application/views/helpers/CallcenterIndicaAtendimentoCorretor.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Zend_View_Helper_CallcenterIndicaAtendimentoCorretor extends Zend_View_Helper_Abstract { public function callcenterIndicaAtendimentoCorretor($corretorId, $clienteCpf) { if ($corretorId > 0 && $clienteCpf > 0) { $tbBase = new Model_DbTable_CallcenterBase(); $base = $tbBase->fetchRow("cpf = '{$clienteCpf}'"); if (!$base) { return false; } if ($base['usuario_ultimo_atendimento'] == $corretorId) { return true; } $tbAtendimento = new Model_DbTable_CallcenterAtendimento(); $atendimento = $tbAtendimento->fetchRow( "cliente_id = {$base['id']} AND corretor_id = {$corretorId}"); if ($atendimento) { return true; } } return false; } }
💾 保存文件
← 返回文件管理器