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
e251b4e5
authored
Jun 05, 2020
by
pye52
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
无意义的优化~
parent
448007e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
app/src/main/java/com/bgycc/smartcanteen/activity/MainActivity.java
+3
-4
No files found.
app/src/main/java/com/bgycc/smartcanteen/activity/MainActivity.java
View file @
e251b4e5
...
...
@@ -58,7 +58,6 @@ import com.google.gson.Gson;
import
java.net.URI
;
import
java.net.URISyntaxException
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.Locale
;
import
static
android
.
os
.
Process
.
myPid
;
...
...
@@ -148,7 +147,7 @@ public class MainActivity extends AppCompatActivity implements View.OnClickListe
case
PayOnlineState
.
SEND
:
message
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
pay_idle
));
message
.
setText
(
R
.
string
.
pay_wait
);
String
time
=
payDateFormat
.
format
(
new
Date
());
String
time
=
payDateFormat
.
format
(
System
.
currentTimeMillis
());
String
log
=
"支付进度: "
+
time
+
" - "
+
event
.
getMessage
();
LogUtils
.
file
(
TAG
,
log
);
...
...
@@ -381,7 +380,7 @@ public class MainActivity extends AppCompatActivity implements View.OnClickListe
TTSHelper
.
speak
(
successMessage
);
qrCodeViewModel
.
scan
();
String
successTime
=
payDateFormat
.
format
(
new
Date
());
String
successTime
=
payDateFormat
.
format
(
System
.
currentTimeMillis
());
String
successLog
=
"支付成功: "
+
successTime
+
" - "
+
successMessage
;
LogUtils
.
file
(
TAG
,
successLog
);
...
...
@@ -399,7 +398,7 @@ public class MainActivity extends AppCompatActivity implements View.OnClickListe
TTSHelper
.
speak
(
failedMessage
);
qrCodeViewModel
.
scan
();
String
failedTime
=
payDateFormat
.
format
(
new
Date
());
String
failedTime
=
payDateFormat
.
format
(
System
.
currentTimeMillis
());
String
failedLog
=
"支付失败: "
+
failedTime
+
" - "
+
failedMessage
;
LogUtils
.
file
(
TAG
,
failedLog
);
...
...
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