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
5d0b76ed
Commit
5d0b76ed
authored
May 20, 2022
by
赵鹏翔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code format
parent
0e191dd7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
MainActivity.kt
app/src/main/java/com/miya/fastcashier/ui/MainActivity.kt
+1
-1
LogFileUtils.kt
app/src/main/java/com/miya/fastcashier/utils/LogFileUtils.kt
+2
-0
No files found.
app/src/main/java/com/miya/fastcashier/ui/MainActivity.kt
View file @
5d0b76ed
...
@@ -107,7 +107,7 @@ class MainActivity : BaseActivity() {
...
@@ -107,7 +107,7 @@ class MainActivity : BaseActivity() {
initData
()
initData
()
checkAccountPassword
()
checkAccountPassword
()
OrderRecordManageKit
.
clearOrderDataYeaterday
()
OrderRecordManageKit
.
clearOrderDataYeaterday
()
LogFileUtils
.
deleteLog
(
10
)
LogFileUtils
.
deleteLog
(
LogFileUtils
.
DAYS_INTERVAL_LOG_DELETE
)
}
}
private
fun
toRefund
()
{
private
fun
toRefund
()
{
...
...
app/src/main/java/com/miya/fastcashier/utils/LogFileUtils.kt
View file @
5d0b76ed
...
@@ -29,6 +29,7 @@ object LogFileUtils {
...
@@ -29,6 +29,7 @@ object LogFileUtils {
File
.
separator
+
File
.
separator
+
"log"
+
"log"
+
File
.
separator
File
.
separator
val
DAYS_INTERVAL_LOG_DELETE
=
10
//本地log删除时间间隔
var
isProhibitWrite
=
false
//是否禁止写入文件
var
isProhibitWrite
=
false
//是否禁止写入文件
private
var
allFileBeanList
//所有的文件列表
private
var
allFileBeanList
//所有的文件列表
:
MutableList
<
FileBean
>?
=
null
:
MutableList
<
FileBean
>?
=
null
...
@@ -36,6 +37,7 @@ object LogFileUtils {
...
@@ -36,6 +37,7 @@ object LogFileUtils {
:
MutableList
<
File
>?
=
null
:
MutableList
<
File
>?
=
null
private
const
val
logSuffix
=
".txt"
private
const
val
logSuffix
=
".txt"
private
const
val
logLink
=
"_"
private
const
val
logLink
=
"_"
fun
writeLog
(
c
:
Context
,
input
:
String
):
Boolean
{
fun
writeLog
(
c
:
Context
,
input
:
String
):
Boolean
{
sExecutor
.
execute
{
writeLogToFile
(
c
,
input
)
}
sExecutor
.
execute
{
writeLogToFile
(
c
,
input
)
}
return
false
return
false
...
...
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