deleted commented functions

parent 2e1732ff
......@@ -135,7 +135,7 @@ class States {
. " WHERE order_id=" . $arr['order']['id']);
$stmt->execute();
sleep(35);
sleep(30);
$ch2 = curl_init('https://services.vot.by/api/order/' . $arr['order']['id'] . '/status');
curl_setopt($ch2, CURLOPT_HTTPHEADER, array(
'Authorization: Bearer ' . $usetTableQueryData['token']
......@@ -155,15 +155,11 @@ class States {
$keyboard = new \TelegramBot\Api\Types\ReplyKeyboardMarkup([[["text" => "В главное меню"]]], true, true);
$bot->sendMessage($message->getChat()->getId(), "У вас не может быть более 7-ми активных заказов!", false, null, null, $keyboard);
// $bot->sendMessage($message->getChat()->getId(), "Start: " . $answer['start_lat'] . " " . $answer['start_lng'], false, null, null, $keyboard);
// $bot->sendMessage($message->getChat()->getId(), "End: " . $answer['end_lat'] . " " . $answer['end_lng'], false, null, null, $keyboard);
$stmt = $db->prepare("DELETE from orders where chat_id = " . $message->getChat()->getId());
$stmt->execute();
} else {
$keyboard = new \TelegramBot\Api\Types\ReplyKeyboardMarkup([[["text" => "В главное меню"]]], true, true);
$bot->sendMessage($message->getChat()->getId(), "Непредвиденная ошибка!", false, null, null, $keyboard);
// $bot->sendMessage($message->getChat()->getId(), "Start: " . $answer['start_lat'] . " " . $answer['start_lng'], false, null, null, $keyboard);
// $bot->sendMessage($message->getChat()->getId(), "End: " . $answer['end_lat'] . " " . $answer['end_lng'], false, null, null, $keyboard);
$stmt = $db->prepare("DELETE from orders where chat_id = " . $message->getChat()->getId());
$stmt->execute();
}
......
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