fix(login): 修复人脸识别登录后的流程处理
- 移除出盘完成日志的重复打印 - 添加餐盘已空时的页面跳转功能
This commit is contained in:
@@ -419,7 +419,6 @@ class LoginByFaceActivity : BaseActivity<ActivityLoginFaceBinding>(),
|
|||||||
override fun onSuccess(result: String) {
|
override fun onSuccess(result: String) {
|
||||||
plateEnable = false
|
plateEnable = false
|
||||||
recognizeCountDownUtil.cancelCountDown()
|
recognizeCountDownUtil.cancelCountDown()
|
||||||
loadLogInfo("collectFace,openPlate: 出盘完成,result=$result,开始查询剩余餐盘")
|
|
||||||
// result 为 false 时表示出盘后无餐盘,直接播放无盘提示音
|
// result 为 false 时表示出盘后无餐盘,直接播放无盘提示音
|
||||||
if (result.equals("false", ignoreCase = true)) {
|
if (result.equals("false", ignoreCase = true)) {
|
||||||
loadLogInfo("collectFace,openPlate: result=false,餐盘已空")
|
loadLogInfo("collectFace,openPlate: result=false,餐盘已空")
|
||||||
@@ -427,6 +426,7 @@ class LoginByFaceActivity : BaseActivity<ActivityLoginFaceBinding>(),
|
|||||||
goInitActivity()
|
goInitActivity()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
loadLogInfo("collectFace,openPlate: 出盘完成,result=$result,开始查询剩余餐盘")
|
||||||
// result 为 true,出盘成功,再查询是否还有剩余餐盘
|
// result 为 true,出盘成功,再查询是否还有剩余餐盘
|
||||||
SoundPoolUtil.getInstance().play(RECOGNIZE_SUCCESS, 0)
|
SoundPoolUtil.getInstance().play(RECOGNIZE_SUCCESS, 0)
|
||||||
checkRemainingPlate()
|
checkRemainingPlate()
|
||||||
@@ -452,8 +452,9 @@ class LoginByFaceActivity : BaseActivity<ActivityLoginFaceBinding>(),
|
|||||||
if (result.isEmptyPlate) {
|
if (result.isEmptyPlate) {
|
||||||
// 餐盘已空,播放无盘提示音
|
// 餐盘已空,播放无盘提示音
|
||||||
SoundPoolUtil.getInstance().play(NO_PLATE_REMIND, 0)
|
SoundPoolUtil.getInstance().play(NO_PLATE_REMIND, 0)
|
||||||
|
|
||||||
|
PlcSettingActivity.start(this@LoginByFaceActivity)
|
||||||
}
|
}
|
||||||
goInitActivity()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onError(message: String) {
|
override fun onError(message: String) {
|
||||||
|
|||||||
Reference in New Issue
Block a user