fix
This commit is contained in:
parent
06ebc96086
commit
7397461512
@ -1,44 +1,42 @@
|
|||||||
{
|
{
|
||||||
"name": "wx-starlock",
|
"name" : "wx-starlock",
|
||||||
"appid": "__UNI__933D519",
|
"appid" : "__UNI__933D519",
|
||||||
"description": "",
|
"description" : "",
|
||||||
"versionName": "1.3.0",
|
"versionName" : "1.3.0",
|
||||||
"versionCode": "37",
|
"versionCode" : "37",
|
||||||
"mp-weixin": {
|
"mp-weixin" : {
|
||||||
"appid": "wx9829a39e65550757",
|
"appid" : "wx9829a39e65550757",
|
||||||
"setting": {
|
"setting" : {
|
||||||
"urlCheck": true,
|
"urlCheck" : true,
|
||||||
"minified": true
|
"minified" : true
|
||||||
},
|
},
|
||||||
"permission": {
|
"permission" : {
|
||||||
"scope.bluetooth": {
|
"scope.bluetooth" : {
|
||||||
"desc": "蓝牙将用于控制和管理您的智能门锁"
|
"desc" : "蓝牙将用于控制和管理您的智能门锁"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"requiredPrivateInfos": [
|
"requiredPrivateInfos" : [ "getLocation" ],
|
||||||
"getLocation"
|
"usingComponents" : true,
|
||||||
],
|
"lazyCodeLoading" : "requiredComponents",
|
||||||
"usingComponents": true,
|
"optimization" : {
|
||||||
"lazyCodeLoading": "requiredComponents",
|
"subPackages" : true
|
||||||
"optimization": {
|
},
|
||||||
"subPackages": true
|
"plugins" : {
|
||||||
},
|
"xp2p" : {
|
||||||
"plugins": {
|
"version" : "latest",
|
||||||
"xp2p": {
|
"provider" : "wx1319af22356934bf",
|
||||||
"version": "latest",
|
"export" : "exportForXp2pPlugin.js"
|
||||||
"provider": "wx1319af22356934bf",
|
},
|
||||||
"export": "exportForXp2pPlugin.js"
|
"wmpf-voip" : {
|
||||||
},
|
"version" : "latest",
|
||||||
"wmpf-voip": {
|
"provider" : "wxf830863afde621eb",
|
||||||
"version": "latest",
|
"genericsImplementation" : {
|
||||||
"provider": "wxf830863afde621eb",
|
"call-page-plugin" : {
|
||||||
"genericsImplementation": {
|
"custombox" : "pages/main/customBox"
|
||||||
"call-page-plugin": {
|
}
|
||||||
"custombox": "pages/main/customBox"
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
}
|
"vueVersion" : "3"
|
||||||
},
|
|
||||||
"vueVersion": "3"
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -39,7 +39,7 @@
|
|||||||
<up-icon
|
<up-icon
|
||||||
name="question-circle-fill"
|
name="question-circle-fill"
|
||||||
@click="tip"
|
@click="tip"
|
||||||
size="52"
|
size="52rpx"
|
||||||
color="rgba(0,0,0,0.35)"
|
color="rgba(0,0,0,0.35)"
|
||||||
></up-icon>
|
></up-icon>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@ -1346,8 +1346,24 @@ export const useBluetoothStore = defineStore('ble', {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
if (code === 0 && data.outputParams) {
|
if (code === 0) {
|
||||||
that.parsingCharacteristicValue(that.hexToArray(data.outputParams))
|
if (data.status === '') {
|
||||||
|
that.parsingCharacteristicValue(that.hexToArray(data.outputParams.result))
|
||||||
|
} else {
|
||||||
|
let code = -10
|
||||||
|
if (data.status === 'FailedOperation.ActionUnreachable') {
|
||||||
|
code = -11
|
||||||
|
}
|
||||||
|
|
||||||
|
uni.showToast({
|
||||||
|
title: `设备状态异常,${code}`,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
characteristicValueCallback({
|
||||||
|
code: -10,
|
||||||
|
message: '设备状态异常'
|
||||||
|
})
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
characteristicValueCallback({
|
characteristicValueCallback({
|
||||||
code,
|
code,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user