fix:忽略cpp目录

This commit is contained in:
wangzhongjie 2024-07-16 16:32:16 +08:00
parent 8dcdb29f61
commit 6b855d1835
2 changed files with 57 additions and 53 deletions

View File

@ -4,13 +4,13 @@
{ {
"name": "default", "name": "default",
"material": { "material": {
"certpath": "/Users/surenjun/.ohos/config/openharmony/auto_ohos_default_subject-two_com.oh.dts.cer", "certpath": "/Users/wangzhongjie/.ohos/config/openharmony/auto_ohos_default_subject-two_com.oh.dts.cer",
"storePassword": "0000001B0C5B52D8C8C6F415D4216EAD2848AA4A376B36FD72006E4072C15BA3D11E6E65C0D1FFA92A6D86", "storePassword": "0000001BBB63DD61213CF0DB2F4C752AEA1CA0C399A96F876B4CEEBE867F18A6C6A959203972B59A421CD8",
"keyAlias": "debugKey", "keyAlias": "debugKey",
"keyPassword": "0000001B8DCA3C8913C86858A0CDEAEB6BEE0DC29FCE9932930CA1FFE68FFF84341736AADF81F056CDD683", "keyPassword": "0000001BE0D5D3EB862C643A7206CFCE4664C22DA79C6D0D87FC8B187C2AD7F1DDFF70F49DE2BEA35B037B",
"profile": "/Users/surenjun/.ohos/config/openharmony/auto_ohos_default_subject-two_com.oh.dts.p7b", "profile": "/Users/wangzhongjie/.ohos/config/openharmony/auto_ohos_default_subject-two_com.oh.dts.p7b",
"signAlg": "SHA256withECDSA", "signAlg": "SHA256withECDSA",
"storeFile": "/Users/surenjun/.ohos/config/openharmony/auto_ohos_default_subject-two_com.oh.dts.p12" "storeFile": "/Users/wangzhongjie/.ohos/config/openharmony/auto_ohos_default_subject-two_com.oh.dts.p12"
} }
} }
], ],

View File

@ -3,16 +3,16 @@ import promptAction from '@ohos.promptAction'
import router from '@ohos.router' import router from '@ohos.router'
import { dateFormat } from '../utils/tools' import { dateFormat } from '../utils/tools'
import FileUtil from '../../common/utils/File' import FileUtil from '../../common/utils/File'
import AccountTable from '../../common/database/tables/AccountTable'; import AccountTable from '../../common/database/tables/AccountTable'
import MA_SYSSET from '../../common/constants/MA_SYSSET'; import MA_SYSSET from '../../common/constants/MA_SYSSET'
import { takePhoto, deleteAllFileByPiC } from '../../common/service/videoService' import { takePhoto } from '../../common/service/videoService'
import { import {
getDataBaseTable,
upDateTable,
getMySystemSetTable,
delSyncTable, delSyncTable,
upDataZhongxinginitialization getDataBaseTable,
getMySystemSetTable,
upDataZhongxinginitialization,
upDateTable
} from '../../common/service/initable' } from '../../common/service/initable'
import { GlobalConfig } from '../../config/index' import { GlobalConfig } from '../../config/index'
import testNapi from '@ohos.hiserialsdk' import testNapi from '@ohos.hiserialsdk'
@ -39,6 +39,7 @@ export async function getliushuiNum(){
// return str // return str
} }
} }
//配置流水号 //配置流水号
export async function setliushuiNum(context) { export async function setliushuiNum(context) {
const fileUtil = new FileUtil(context) const fileUtil = new FileUtil(context)
@ -130,6 +131,7 @@ export async function getDoubleCeneterTable() {
}) })
} }
//单中心存表 //单中心存表
export async function getSingleCenterTable() { export async function getSingleCenterTable() {
return new Promise((reslove, reject) => { return new Promise((reslove, reject) => {
@ -257,8 +259,10 @@ export async function takePhotoFn(context) {
} }
}, 3000) }, 3000)
} }
let fd let fd
const devPath="/dev/ttyUSB0" const devPath = "/dev/ttyS3"
async function openChuankouFn(): Promise<number> { async function openChuankouFn(): Promise<number> {
console.log('fdfd1111 start') console.log('fdfd1111 start')
fd = await testNapi.SerialOpen(devPath); fd = await testNapi.SerialOpen(devPath);
@ -271,8 +275,8 @@ async function openChuankouFn():Promise<number> {
return ret return ret
} }
async function getChuankouFnMsg() { async function getChuankouFnMsg() {
let timeout = 50000; // 2秒超时 let timeout = 50000; // 2秒超时
let databuff = [0x61, 0xAA, 0x0A, 0X15, 0X00]; // send ABCDE let databuff = [0x61, 0xAA, 0x0A, 0X15, 0X00]; // send ABCDE