Новый текст уведомления о новой точке

This commit is contained in:
Krivchikov Dmitry 2014-06-01 11:47:41 +04:00
parent 8349d3a23f
commit 22b4b67f75
1 changed files with 2 additions and 2 deletions

View File

@ -98,12 +98,12 @@ class JsonController extends Controller
)); ));
$ch = curl_init("http://sms.ru/sms/send"); $ch = curl_init("http://sms.ru/sms/send");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 30); curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_POSTFIELDS, array( curl_setopt($ch, CURLOPT_POSTFIELDS, array(
"api_id" => "2c2af6a7-a935-0e84-5952-599f5cd61905", "api_id" => "2c2af6a7-a935-0e84-5952-599f5cd61905",
"to" => "79046106141", "to" => "79046106141",
"text" => "Wikipoints: Новая точка #".$point->id, "text" => "#".$point->id.": ".$point->name,
)); ));
curl_exec($ch); curl_exec($ch);
curl_close($ch); curl_close($ch);