Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function identificarEmail() {
- $remetente = "frederico.contab@gmail.com";
- $tarefa = array("id_unidade_negocio" => 10);
- $msgBody = "Fale Conosco - ClubeDoRicardo.com.brNome: Frederico Eduardo de OliveiraEmail: frederico.contab@gmail.comTelefone: (62) 9616-9292Pedido: 23375843Assunto: EntregaComentário: Bom dia !!!
- Não consigo rastrear meu pedido mandei email e não me responderam
- o que devo fazer por favor";
- if (!empty($remetente) && !empty($tarefa['id_unidade_negocio'])) {
- $ident = $this->identificarClientePedidoEmail($remetente, $tarefa['id_unidade_negocio'], $msgBody);
- if (!empty($ident["identificacao"])) {
- $identificacao = (!empty($ident["identificacao"][0])) ? $ident["identificacao"][0] : $ident["identificacao"];
- $tarefa["id_pedido_venda"] = ($ident["id_tipo_documento"] == TipoDocumentoConstants::PEDIDO) ? $identificacao["id_pedido_venda"] : null;
- $tarefa["numero_documento"] = ($ident["id_tipo_documento"] == TipoDocumentoConstants::PEDIDO) ? $identificacao["num_controle_pedido"] : $identificacao["documento"];
- $tarefa["id_tipo_documento"] = $ident["id_tipo_documento"];
- }
- }
- echo'<pre>';print_r($tarefa);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement