Commit 361fa393 by patpat

增加清空离线支付记录二维码识别

parent 4a26711b
......@@ -2,6 +2,7 @@ package com.bgycc.smartcanteen.task;
import android_serialport_api.SerialPort;
import com.bgycc.smartcanteen.App;
import com.bgycc.smartcanteen.Storage.PayStorage;
import com.bgycc.smartcanteen.event.QRCodeEvent;
import com.bgycc.smartcanteen.action.*;
import com.bgycc.smartcanteen.event.LogEvent;
......@@ -214,6 +215,8 @@ public class QRCodeTask {
UpdateAction.Companion.getDefault().exec(data);
} else if (action.equals(ActionEnum.CONFIG_LOG.name())) {
EventBus.getDefault().post(new LogEvent());
} else if (action.equals(ActionEnum.CONFIG_CLEAR_OFFLINE_RECODE.name())) {
PayStorage.getInstance().clearPayList();
}
} else {
EventBus.getDefault().post(new QRCodeInvalidEvent());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment