From 3fcdefeb4e86373668844f3a95b2d43932b715f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwangzhongjie=E2=80=9D?= Date: Fri, 23 Feb 2024 16:08:37 +0800 Subject: [PATCH] 222 --- entry/src/main/ets/pages/Index.ets | 3 ++- entry/src/main/ets/pages/compontents/judge/real-time.ets | 3 +++ entry/src/main/ets/pages/judgeSDK/api/index.ts | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/entry/src/main/ets/pages/Index.ets b/entry/src/main/ets/pages/Index.ets index e55c41e..9681974 100644 --- a/entry/src/main/ets/pages/Index.ets +++ b/entry/src/main/ets/pages/Index.ets @@ -12,7 +12,7 @@ import { getUDP, getUDP2 } from '../common/utils/GlobleUdp' import {initJudgeUdp} from '../common/utils/UdpJudge' import { getTCP } from '../common/utils/GlobleTcp' import TcpClient from '../common/utils/TcpClient'; - +import testNapi from '@ohos.hiserialsdk' import {setliushuiNum,getSingleCenterTable,getDoubleCeneterTable} from '../common/service/indexService' @Entry @Component @@ -226,6 +226,7 @@ struct Index { // await this.getModel() // const arr = [0x55, 0xaa, 0x01, 0x00, 0x02, 0x01, 0x03, 0x00] // globalThis.udpClientByTopLine.sendMsg(Array2Byte(arr).buffer) + console.info(testNapi) } async getModel() { const context = this.context; diff --git a/entry/src/main/ets/pages/compontents/judge/real-time.ets b/entry/src/main/ets/pages/compontents/judge/real-time.ets index 43dbc3b..397ecee 100644 --- a/entry/src/main/ets/pages/compontents/judge/real-time.ets +++ b/entry/src/main/ets/pages/compontents/judge/real-time.ets @@ -1,6 +1,8 @@ // @ts-nocheck import hilog from '@ohos.hilog'; import apiJudgeSdk from 'libJudgeSdk.so'; +// import apiJudgeSdk from '@ohos.judgesdk'; + import Judge from '../../judgeSDK/utils/judge-real' import {Project,ProjectObj,MarkRule} from '../../judgeSDK/api/judgeSDK.d' import common from '@ohos.app.ability.common'; @@ -37,6 +39,7 @@ struct RealTime { id: 'duolun_plugin_id_draw', //显示轨迹窗口id名称,注意这个ID要和C++侧一致,不能变 type: 'surface', libraryname: 'JudgeSdk' + // libraryname: 'judgesdk' }) .width(this.width) .height(this.height) diff --git a/entry/src/main/ets/pages/judgeSDK/api/index.ts b/entry/src/main/ets/pages/judgeSDK/api/index.ts index d278e3a..27cddcc 100644 --- a/entry/src/main/ets/pages/judgeSDK/api/index.ts +++ b/entry/src/main/ets/pages/judgeSDK/api/index.ts @@ -1,5 +1,5 @@ import libJudgeSdk from 'libJudgeSdk.so' - +// import libJudgeSdk from '@ohos.judgesdk' /** * 苏仁君 * @date 2023/04/10