From 64264506aa695a6fd923ff5c0596a941fbdfcafe Mon Sep 17 00:00:00 2001 From: surenjun Date: Wed, 6 Nov 2024 14:49:56 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9AfileLog=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/pages/judgeSDK/utils/fileLog.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/entry/src/main/ets/pages/judgeSDK/utils/fileLog.ts b/entry/src/main/ets/pages/judgeSDK/utils/fileLog.ts index f804608a..a6b2881b 100644 --- a/entry/src/main/ets/pages/judgeSDK/utils/fileLog.ts +++ b/entry/src/main/ets/pages/judgeSDK/utils/fileLog.ts @@ -81,6 +81,17 @@ export default class FileLog { await fileUtil.editFile(`${folderPath}/judge_log_data.txt`,str); } + // 设置四合一画面数据 + public setFourAndOneLogData = async (str:string) => { + const {fileUtil,folderPath} = this; + await fileUtil.editFile(`${folderPath}/four_one_log_data.txt`,str); + } + + public setFourAndOneLogDataBytes = async (str:string) => { + const {fileUtil,folderPath} = this; + await fileUtil.editFile(`${folderPath}/four_one_log_byte_data.txt`,str); + } + // 无锡所轨迹数据 public setExamLineData = async (plcStr) => { const {fileUtil,folderPath} = this;