Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
huangzhicong
/
SmartCanteen
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
361fa393
authored
Nov 08, 2019
by
patpat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加清空离线支付记录二维码识别
parent
4a26711b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
app/src/main/java/com/bgycc/smartcanteen/task/QRCodeTask.java
+3
-0
No files found.
app/src/main/java/com/bgycc/smartcanteen/task/QRCodeTask.java
View file @
361fa393
...
...
@@ -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
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment