Add f7push webhook for support replies and ticket deep links.
OCS endpoint for support.f7cloud.ru, notification notifier, and ?ticket= URL opening in the client UI.
This commit is contained in:
@@ -50,6 +50,10 @@ class PageController extends Controller {
|
||||
// Отключить вызовы с клиента: occ config:app:set f7support client_read_receipts --value=0
|
||||
$clientReadReceipts = $this->config->getAppValue('f7support', 'client_read_receipts', '0');
|
||||
|
||||
// Push webhook (support.f7cloud.ru → f7push): POST /ocs/v2.php/apps/f7support/api/v1/push
|
||||
// Secret: occ config:app:get f7push api_secret (or f7support push_webhook_secret)
|
||||
// occ config:app:set f7support push_enabled --value=yes
|
||||
|
||||
// Периодический GET /api/client/tickets (мс): has_unread и отпечаток карточки; WebSocket только у открытого тикета.
|
||||
// По умолчанию 3000 (3 с). Пустая строка в конфиге трактуется как 3000. Явное «0» отключает опрос. Иначе 3000…120000. occ: f7support tickets_poll_ms
|
||||
$rawPoll = trim((string) $this->config->getAppValue('f7support', 'tickets_poll_ms', '3000'));
|
||||
|
||||
Reference in New Issue
Block a user