Документация в коде: деплой POST …/read и occ client_read_receipts
This commit is contained in:
@@ -43,8 +43,11 @@ class PageController extends Controller {
|
|||||||
// Optional full WebSocket URL prefix, e.g. wss://support.f7cloud.ru/api/ws (path before /tickets/{id})
|
// Optional full WebSocket URL prefix, e.g. wss://support.f7cloud.ru/api/ws (path before /tickets/{id})
|
||||||
$supportWsBase = $this->config->getAppValue('f7support', 'support_ws_base', '');
|
$supportWsBase = $this->config->getAppValue('f7support', 'support_ws_base', '');
|
||||||
|
|
||||||
// POST /api/client/tickets/{id}/read — только если бэкенд уже выкатили (иначе 404 и шум в консоли NC).
|
// Метки «прочитано» (POST …/read на API поддержки).
|
||||||
// Включение: occ config:app:set f7support client_read_receipts --value=1
|
// Порядок деплоя: (1) выкатить бэкенд с маршрутами POST /api/client/tickets/{id}/read и POST /api/operator/tickets/{id}/read;
|
||||||
|
// (2) на Nextcloud: occ config:app:set f7support client_read_receipts --value=1 — тогда приложение f7support начнёт слать client /read;
|
||||||
|
// панель оператора вызывает operator /read независимо от этого флага. При client_read_receipts=0 клиент не дергает client /read (нет 404 на старом API).
|
||||||
|
// Отключить вызовы с клиента: occ config:app:set f7support client_read_receipts --value=0
|
||||||
$clientReadReceipts = $this->config->getAppValue('f7support', 'client_read_receipts', '0');
|
$clientReadReceipts = $this->config->getAppValue('f7support', 'client_read_receipts', '0');
|
||||||
|
|
||||||
Util::addStyle('f7support', 'f7support');
|
Util::addStyle('f7support', 'f7support');
|
||||||
|
|||||||
Reference in New Issue
Block a user