|
@@ -78,13 +78,10 @@ const pySocket = function () {
|
|
|
// 监听消息事件
|
|
// 监听消息事件
|
|
|
app.socket.on('message', (data) => {
|
|
app.socket.on('message', (data) => {
|
|
|
try {
|
|
try {
|
|
|
- console.log('socket.on.message11111111111111111111111');
|
|
|
|
|
-
|
|
|
|
|
let this_data = JSON.parse(data.toString());
|
|
let this_data = JSON.parse(data.toString());
|
|
|
|
|
|
|
|
- if(this_data.msg_type !== 'smart_shooter_enable_preview'){ console.log(this_data);}
|
|
|
|
|
|
|
+ if(!['blue_tooth','smart_shooter_enable_preview'].includes(this_data.msg_type)){ console.log(this_data);}
|
|
|
if(this_data.msg_type){
|
|
if(this_data.msg_type){
|
|
|
-
|
|
|
|
|
let notAllMessage = false
|
|
let notAllMessage = false
|
|
|
switch (this_data.msg_type){
|
|
switch (this_data.msg_type){
|
|
|
case 'smart_shooter_enable_preview':
|
|
case 'smart_shooter_enable_preview':
|