Файловый менеджер - Редактировать - /var/www/axolotl/data/www/axolotls.ru/www/bitrix/modules/voximplant/lib/notification.php
Назад
<?php namespace Bitrix\Voximplant; class Notification { public static function isBalanceTooLow() { $account = new \CVoxImplantAccount(); if (\CVoxImplantAccount::getPayedFlag() !== 'Y') { return false; } $accountLang = $account->GetAccountLang(false); if(in_array($accountLang, ['ua', 'kz', 'by'])) { return false; } $balance = $account->getAccountBalance(false); $balanceThreshold = $account->getBalanceThreshold(); $hasCallsInLastFiveDays = false; $lastPaidCallTimestamp = \CVoxImplantHistory::getLastPaidCallTimestamp(); if($lastPaidCallTimestamp > 0) { $interval = time() - $lastPaidCallTimestamp; if($interval < 432000) // 5 days { $hasCallsInLastFiveDays = true; } } return (\CVoxImplantPhone::getRentedNumbersCount() > 0 && $hasCallsInLastFiveDays && $balanceThreshold > 0 && $balance < $balanceThreshold); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.8 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка