Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MiYaFastCashier
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jiangjiantao
MiYaFastCashier
Commits
fe3304e3
Commit
fe3304e3
authored
May 26, 2022
by
赵鹏翔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加出错时的日志写入
parent
2751db4e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
BaseApplication.kt
app/src/main/java/com/miya/fastcashier/BaseApplication.kt
+8
-1
SettingActivity.kt
app/src/main/java/com/miya/fastcashier/ui/SettingActivity.kt
+0
-6
No files found.
app/src/main/java/com/miya/fastcashier/BaseApplication.kt
View file @
fe3304e3
...
...
@@ -97,7 +97,7 @@ class BaseApplication : MultiDexApplication() {
LogFileUtils
.
writeLog
(
ContextUtils
.
getContext
(),
DateUtils
.
getDateStringByTimeStamp
(
System
.
currentTimeMillis
())
.
toString
()
+
"
"
+
message
+
"\n"
.
toString
()
+
"
$message"
+
"\n"
)
}
if
(
BuildConfig
.
DEBUG
)
{
...
...
@@ -107,6 +107,13 @@ class BaseApplication : MultiDexApplication() {
loggingInterceptor
.
level
=
MiyaHttpLoggingInterceptor
.
Level
.
BODY
}
catch
(
ex
:
Exception
)
{
ex
.
printStackTrace
()
if
(!
LogFileUtils
.
isProhibitWrite
)
{
LogFileUtils
.
writeLog
(
ContextUtils
.
getContext
(),
DateUtils
.
getDateStringByTimeStamp
(
System
.
currentTimeMillis
())
.
toString
()
+
"异常: ${ex.message}"
+
"\n"
)
}
}
MiYaPayMobileApiClient
.
init
(
true
,
loggingInterceptor
)
}
...
...
app/src/main/java/com/miya/fastcashier/ui/SettingActivity.kt
View file @
fe3304e3
...
...
@@ -69,12 +69,6 @@ class SettingActivity : BaseActivity() {
// }
// }
if
(
countClick
<
5
)
{
if
(
countClick
>=
2
&&
countClick
<
5
)
{
Toasty
.
info
(
applicationContext
,
getString
(
R
.
string
.
toast_click_again
,
5
-
countClick
)
).
show
()
}
return
}
...
...
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