Commit 1b419fbb authored by 赵鹏翔's avatar 赵鹏翔

每次启动清除10天前的本地日志

parent db081f49
...@@ -10,14 +10,12 @@ import com.miya.fastcashier.databinding.ActivityMainBinding ...@@ -10,14 +10,12 @@ import com.miya.fastcashier.databinding.ActivityMainBinding
import com.miya.fastcashier.service.AccountService import com.miya.fastcashier.service.AccountService
import com.miya.fastcashier.service.PrintService import com.miya.fastcashier.service.PrintService
import com.miya.fastcashier.ui.dialog.AuthorizePasswordInputDialog import com.miya.fastcashier.ui.dialog.AuthorizePasswordInputDialog
import com.miya.fastcashier.utils.CenterToasty import com.miya.fastcashier.utils.*
import com.miya.fastcashier.utils.DateSelectHelper
import com.miya.fastcashier.utils.DateUtils
import com.miya.fastcashier.utils.clickWithTrigger
import com.miya.fastcashier.utils.manage.AccountPasswordManageKit import com.miya.fastcashier.utils.manage.AccountPasswordManageKit
import com.miya.fastcashier.utils.manage.LocalKeyDataMKManageKit import com.miya.fastcashier.utils.manage.LocalKeyDataMKManageKit
import com.miya.fastcashier.utils.manage.OrderRecordManageKit import com.miya.fastcashier.utils.manage.OrderRecordManageKit
import com.miya.fastcashier.viewmodel.MainViewModel import com.miya.fastcashier.viewmodel.MainViewModel
import com.miya.print.utils.PrintLogger
import java.util.* import java.util.*
class MainActivity : BaseActivity() { class MainActivity : BaseActivity() {
...@@ -109,6 +107,7 @@ class MainActivity : BaseActivity() { ...@@ -109,6 +107,7 @@ class MainActivity : BaseActivity() {
initData() initData()
checkAccountPassword() checkAccountPassword()
OrderRecordManageKit.clearOrderDataYeaterday() OrderRecordManageKit.clearOrderDataYeaterday()
LogFileUtils.deleteLog(10)
} }
private fun toRefund() { private fun toRefund() {
......
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