From 21ae153226c8492aa9b4f196b097dfe5c13603cb Mon Sep 17 00:00:00 2001 From: lv <1344032923@qq.com> Date: Wed, 2 Apr 2025 11:02:13 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E8=80=83=E7=94=9Frsp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/model/api.ets | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/entry/src/main/ets/model/api.ets b/entry/src/main/ets/model/api.ets index 7c52bddf..bb84e642 100644 --- a/entry/src/main/ets/model/api.ets +++ b/entry/src/main/ets/model/api.ets @@ -31,6 +31,28 @@ export interface TimeSynchronizationRspBody { paraKdid?: string kdid?: string } +export interface examinerLoginRsp { + bz1?: string; + fieldid?: string + kchp?: string + ksdd?: string + kscx?: string + kskm?: string + kslx?: string + kssycs?: string + ksxl?: string + ksy1?: string + kszt?: string + lsh?: string + sfzmhm?: string + xb?: string + xh?: string + xldm?: string + xm?: string + yycs?: string + ksy1sfzmhm?: string +} + interface UploadExamCarCheckResultRsp { head: Head From 27583fb77d601122daf56368778c4fd747c9c0b9 Mon Sep 17 00:00:00 2001 From: lv <1344032923@qq.com> Date: Wed, 2 Apr 2025 14:03:35 +0800 Subject: [PATCH 2/2] =?UTF-8?q?examinerInfo=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/ExaminerLogin.ets | 4 ++-- entry/src/main/ets/pages/UserInfo.ets | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/entry/src/main/ets/pages/ExaminerLogin.ets b/entry/src/main/ets/pages/ExaminerLogin.ets index 5387b13b..90ce28fb 100644 --- a/entry/src/main/ets/pages/ExaminerLogin.ets +++ b/entry/src/main/ets/pages/ExaminerLogin.ets @@ -109,7 +109,7 @@ struct Index { try { // TODO examinerLogin(param).then((res: ESObject) => { - AppStorage.setOrCreate('examinerInfo', res?.examinerLoginRsp?.body) + // AppStorage.setOrCreate('examinerInfo', res?.examinerLoginRsp?.body) console.log('res?.examinerLoginRsp?.head?.resultCode', res?.examinerLoginRsp?.head?.resultCode, JSON.stringify(res)) this.errorDialog.close() @@ -132,7 +132,7 @@ struct Index { console.log('res11', JSON.stringify(res)) const examinerLoginInfo: ExaminerLoginInfo = res.examinerLoginRsp.body examinerLoginInfo.username = this.inputTextArr[0] - AppStorage.setOrCreate('examinerLoginInfo', examinerLoginInfo) + AppStorage.setOrCreate('examinerInfo', examinerLoginInfo) }).catch((err: BusinessError) => { console.log('jiangsong12', JSON.stringify(err)) this.errorDialog.close() diff --git a/entry/src/main/ets/pages/UserInfo.ets b/entry/src/main/ets/pages/UserInfo.ets index ccebb758..2b00c2d9 100644 --- a/entry/src/main/ets/pages/UserInfo.ets +++ b/entry/src/main/ets/pages/UserInfo.ets @@ -220,7 +220,7 @@ struct UserInfo { this.currentUser = EmptyCandidateObject this.filePhoto = new FilePhoto(this.context); this.singlePlay = AppStorage.get('singlePlay') - this.examinerLoginInfo = AppStorage.get('examinerLoginInfo') + this.examinerLoginInfo = AppStorage.get('examinerInfo') this.carInfo = AppStorage.get('carInfo') //语音功能on // new WebRTCVoice(this.context); @@ -340,7 +340,7 @@ struct UserInfo { }, 200) this.examinerLoginInfo.ksyh = res.ksy1sfzmhm - AppStorage.setOrCreate('examinerLoginInfo', this.examinerLoginInfo) + AppStorage.setOrCreate('examinerInfo', this.examinerLoginInfo) AppStorage.setOrCreate('lsh', res.lsh) // const { examSubject } = this.carInfo; if (this.singlePlay) { @@ -455,7 +455,7 @@ struct UserInfo { this.lsh = this.currentUser.lsh this.examinerLoginInfo.ksyh = this.currentUser.ksy1sfzmhm - AppStorage.setOrCreate('examinerLoginInfo', this.examinerLoginInfo) + AppStorage.setOrCreate('examinerInfo', this.examinerLoginInfo) AppStorage.setOrCreate('lsh', this.lsh) } @@ -747,7 +747,7 @@ struct UserInfo { this.currentUser.ksy2 = this.examinerLoginInfo.kgxm AppStorage.setOrCreate('lsh', this.currentUser.lsh) this.examinerLoginInfo.ksyh = this.currentUser.ksy1sfzmhm - AppStorage.setOrCreate('examinerLoginInfo', this.examinerLoginInfo) + AppStorage.setOrCreate('examinerInfo', this.examinerLoginInfo) }, 200) } else { this.currentUser = EmptyCandidateObject @@ -1054,7 +1054,7 @@ struct UserInfo { const temp = await writeObjectOut(param); AppStorage.setOrCreate('lsh', this.currentUser.lsh) this.examinerLoginInfo.ksyh = this.currentUser.ksy1sfzmhm - AppStorage.setOrCreate('examinerLoginInfo', this.examinerLoginInfo) + AppStorage.setOrCreate('examinerInfo', this.examinerLoginInfo) return temp }