From 2e36e738ca39afc8d02f3d11013bd12f937cc874 Mon Sep 17 00:00:00 2001
From: zhaomingwork <61895407+zhaomingwork@users.noreply.github.com>
Date: 星期三, 08 十一月 2023 09:22:06 +0800
Subject: [PATCH] fix bug for h5 hotwords (#1067)
---
runtime/html5/static/wsconnecter.js | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/runtime/html5/static/wsconnecter.js b/runtime/html5/static/wsconnecter.js
index b9a786d..455e1a1 100644
--- a/runtime/html5/static/wsconnecter.js
+++ b/runtime/html5/static/wsconnecter.js
@@ -85,12 +85,13 @@
}
var hotwords=getHotwords();
- if(hotwords.length>0)
+
+ if(hotwords!=null )
{
request.hotwords=hotwords;
}
- console.log(request);
- speechSokt.send( JSON.stringify(request) );
+ console.log(JSON.stringify(request));
+ speechSokt.send(JSON.stringify(request));
console.log("杩炴帴鎴愬姛");
stateHandle(0);
--
Gitblit v1.9.1