|
|
@@ -63,7 +63,7 @@ function disconnectDevice() { |
|
|
|
}); |
|
|
|
break; |
|
|
|
case "ETC": |
|
|
|
if (datas.getData("deviceName").includes("KC")) { |
|
|
|
if (datas.getData("deviceName").includes("KC") || datas.getData("deviceName").includes("K")) { |
|
|
|
kcApi.disconnectDevice(function(res) { |
|
|
|
datas.setData("bluLinkStatus", false); |
|
|
|
datas.setData("connectPrefixName", ""); |
|
|
@@ -177,7 +177,7 @@ function transCmd(cmdArr, type, func, callBack = null) { |
|
|
|
break; |
|
|
|
case "ETC": |
|
|
|
//-------------deviceName前装-科畅 |
|
|
|
if (datas.getData("deviceName").includes("KC")) { |
|
|
|
if (datas.getData("deviceName").includes("KC")||datas.getData("deviceName").includes("K")) { |
|
|
|
console.log('kc执行内容====', cmdArr, type) |
|
|
|
kcApi.transCmd(cmdArr, type, function(res) { |
|
|
|
console.log('kc执行内容====11111', res) |