From 7e25b5a797a76f524f9b49e94404b7b172cec163 Mon Sep 17 00:00:00 2001 From: lvyuankang <1344032923@qq.com> Date: Fri, 21 Mar 2025 13:20:03 +0800 Subject: [PATCH] =?UTF-8?q?userinfo=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/pages/UserInfo.ets | 5 +++-- entry/src/main/ets/pages/VideoConfig.ets | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/entry/src/main/ets/pages/UserInfo.ets b/entry/src/main/ets/pages/UserInfo.ets index 7138850e..b7d223d1 100644 --- a/entry/src/main/ets/pages/UserInfo.ets +++ b/entry/src/main/ets/pages/UserInfo.ets @@ -641,8 +641,7 @@ struct UserInfo { this.startExam = false // await upDateTableByArray('USER', []) // await upDateTableByArray('USERLIST', []) - await DB.clearTable('USER') - await DB.clearTable('USERLIST') + this.type = '2' this.errorDialog.open() this.updateTimeLimit = true @@ -650,6 +649,8 @@ struct UserInfo { try { getExaminationStudentInfo(param).then(async (res) => { console.log("temp log ", JSON.stringify(res)) + await DB.clearTable('USER') + await DB.clearTable('USERLIST') this.errorDialog.close() setTimeout(() => { this.updateTimeLimit = false diff --git a/entry/src/main/ets/pages/VideoConfig.ets b/entry/src/main/ets/pages/VideoConfig.ets index ec554df6..a5c186bf 100644 --- a/entry/src/main/ets/pages/VideoConfig.ets +++ b/entry/src/main/ets/pages/VideoConfig.ets @@ -117,7 +117,7 @@ struct Index { for (let i = 1; i <= 4; i++) { console.log('rocord_handle', i, JSON.stringify(this.rocordHandleObj)) if (this.rocordHandleObj['rocord_handle'+i]) { - endRecordVideo(this.rocordHandleObj['rocord_handle'+i]) + endRecordVideo(this.rocordHandleObj) this.rocordHandleObj['rocord_handle'+i] = 0 } }