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

code format

parent 0e191dd7
......@@ -107,7 +107,7 @@ class MainActivity : BaseActivity() {
initData()
checkAccountPassword()
OrderRecordManageKit.clearOrderDataYeaterday()
LogFileUtils.deleteLog(10)
LogFileUtils.deleteLog(LogFileUtils.DAYS_INTERVAL_LOG_DELETE)
}
private fun toRefund() {
......
......@@ -29,6 +29,7 @@ object LogFileUtils {
File.separator +
"log" +
File.separator
val DAYS_INTERVAL_LOG_DELETE = 10 //本地log删除时间间隔
var isProhibitWrite = false //是否禁止写入文件
private var allFileBeanList //所有的文件列表
: MutableList<FileBean>? = null
......@@ -36,6 +37,7 @@ object LogFileUtils {
: MutableList<File>? = null
private const val logSuffix = ".txt"
private const val logLink = "_"
fun writeLog(c: Context, input: String): Boolean {
sExecutor.execute { writeLogToFile(c, input) }
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