Commit 5d0b76ed authored by 赵鹏翔's avatar 赵鹏翔

code format

parent 0e191dd7
...@@ -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() {
......
...@@ -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
......
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 to comment