feat(paradizweb): show explicit booking-doc ready message in web chat

This commit is contained in:
OpenClaw Assistant
2026-03-03 00:26:16 +03:00
parent b4f4733721
commit 3f276cd124
3 changed files with 3 additions and 2 deletions

Binary file not shown.

View File

@@ -113,6 +113,7 @@
const b64 = data?.data?.booking_doc_base64 || '';
const name = data?.data?.booking_doc_name || 'booking.docx';
if(b64){
addMsg('Лист предварительной брони сформирован. Скачайте файл ниже 👇', 'bot');
const a = document.createElement('a');
a.href = 'data:application/vnd.openxmlformats-officedocument.wordprocessingml.document;base64,' + b64;
a.download = name;

View File

@@ -2,7 +2,7 @@
/**
* Plugin Name: Paradiz Web Chat
* Description: Чат-плагин для сайта vparadize.ru, который отправляет вопросы в изолированного агента OpenClaw paradizweb.
* Version: 1.0.8
* Version: 1.0.9
* Author: EVA
*/
@@ -57,7 +57,7 @@ class ParadizWebChat {
}
public function enqueue_assets() {
wp_register_script('paradiz-web-chat', plugins_url('chat.js', __FILE__), [], '1.0.8', true);
wp_register_script('paradiz-web-chat', plugins_url('chat.js', __FILE__), [], '1.0.9', true);
wp_localize_script('paradiz-web-chat', 'ParadizWebChatCfg', [
'ajaxUrl' => admin_url('admin-ajax.php'),
'nonce' => wp_create_nonce('paradiz_web_chat_nonce')