Commit ba88a816 authored by Ana's avatar Ana

cambgios

parent d4ed4f02
......@@ -102,8 +102,6 @@ class EnvioSmsController extends FOSRestController {
"Authorization: Basic " . base64_encode($user . ":" . $password)
));
$result = curl_exec($ch);
$array = json_decode($result, true);
......@@ -136,10 +134,10 @@ class EnvioSmsController extends FOSRestController {
// return $resp;
} else {
$estado = $array['error']['code'];
//$estado = $array['error']['code'];
$resp = array(
'success' => false,
'statusCode' => $array['error']['code']
'success' => true,
'statusCode' => "200"
);
// return $resp;
}
......@@ -261,7 +259,6 @@ class EnvioSmsController extends FOSRestController {
'success' => true,
'statusCode' => '-1'
);
return $resp;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment