fix:遗漏方法提交
This commit is contained in:
parent
dc72d33536
commit
ed4b981807
@ -1,15 +1,13 @@
|
|||||||
{
|
{
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 1,
|
||||||
"ATTENTION": "THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.",
|
"ATTENTION": "THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.",
|
||||||
"specifiers": {
|
"specifiers": {
|
||||||
"@ohos/hypium@1.0.6": "@ohos/hypium@1.0.6"
|
"@ohos/hypium@1.0.6": "@ohos/hypium@1.0.6"
|
||||||
},
|
},
|
||||||
"packages": {
|
"packages": {
|
||||||
"@ohos/hypium@1.0.6": {
|
"@ohos/hypium@1.0.6": {
|
||||||
"resolved": "https://ohpm.openharmony.cn/ohpm/@ohos/hypium/-/hypium-1.0.6.tgz",
|
"resolved": "https://repo.harmonyos.com/ohpm/@ohos/hypium/-/hypium-1.0.6.tgz",
|
||||||
"integrity": "sha512-bb3DWeWhYrFqj9mPFV3yZQpkm36kbcK+YYaeY9g292QKSjOdmhEIQR2ULPvyMsgSR4usOBf5nnYrDmaCCXirgQ==",
|
"integrity": "sha512-bb3DWeWhYrFqj9mPFV3yZQpkm36kbcK+YYaeY9g292QKSjOdmhEIQR2ULPvyMsgSR4usOBf5nnYrDmaCCXirgQ=="
|
||||||
"registryType": "ohpm",
|
|
||||||
"shasum": "3f5fed65372633233264b3447705b0831dfe7ea1"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -7,12 +7,14 @@ import { takePhoto, deleteAllFileByPiC } from '../../common/service/videoService
|
|||||||
// import { VideoConfigData } from '../../mock';
|
// import { VideoConfigData } from '../../mock';
|
||||||
import request from '@ohos.request'
|
import request from '@ohos.request'
|
||||||
import Prompt from '@system.prompt';
|
import Prompt from '@system.prompt';
|
||||||
|
import util from '@ohos.util';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
delSyncTable,
|
delSyncTable,
|
||||||
getDataBaseTable,
|
getDataBaseTable,
|
||||||
getMySystemSetTable,
|
getMySystemSetTable,
|
||||||
upDataZhongxinginitialization,
|
upDataZhongxinginitialization,
|
||||||
|
getSyncData,
|
||||||
upDateTable
|
upDateTable
|
||||||
} from '../../common/service/initable'
|
} from '../../common/service/initable'
|
||||||
import { GlobalConfig } from '../../config/index'
|
import { GlobalConfig } from '../../config/index'
|
||||||
@ -455,9 +457,9 @@ function getChuankouFnMsg() {
|
|||||||
let databuff = [0x61, 0xAA, 0x0A, 0X15, 0X00]; // send ABCDE
|
let databuff = [0x61, 0xAA, 0x0A, 0X15, 0X00]; // send ABCDE
|
||||||
testNapi.SerialSendAsync(globalThis.fd, databuff, (ret) => {
|
testNapi.SerialSendAsync(globalThis.fd, databuff, (ret) => {
|
||||||
testNapi.SerialRecvAsync(globalThis.fd, timeout, (revTestInfo) => {
|
testNapi.SerialRecvAsync(globalThis.fd, timeout, (revTestInfo) => {
|
||||||
|
|
||||||
const message = revTestInfo?.recevedBuf?.toString()
|
const message = revTestInfo?.recevedBuf?.toString()
|
||||||
if (message == '') {
|
let msgBuf = util.TextDecoder.create().decodeWithStream(new Uint8Array(revTestInfo?.recevedBuf))
|
||||||
|
if (message == '' || msgBuf == '') {
|
||||||
globalThis.num = 1
|
globalThis.num = 1
|
||||||
// clearInterval(chuankou)
|
// clearInterval(chuankou)
|
||||||
testNapi.SerialClose(globalThis.fd);
|
testNapi.SerialClose(globalThis.fd);
|
||||||
@ -468,16 +470,8 @@ function getChuankouFnMsg() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
const msg = message?.split(',')
|
const msg = message?.split(',')
|
||||||
if (!msg?.length) {
|
let dang = Number(msgBuf?.split(",")?.[1]?.split('\r')[0] || 0)
|
||||||
|
globalThis.chuankoMsg =( msg[9] === '' || msg[9] >10 ) ? dang: msg[9]
|
||||||
} else if (msg[0] != '98' || msg[1] != '85' || msg.length < 9) {
|
|
||||||
|
|
||||||
} else if (msg.length < 12) {
|
|
||||||
|
|
||||||
} else {
|
|
||||||
globalThis.chuankoMsg = msg[9]
|
|
||||||
}
|
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
getChuankouFnMsg()
|
getChuankouFnMsg()
|
||||||
}, 500)
|
}, 500)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user