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
92d28b09
Commit
92d28b09
authored
Jun 23, 2022
by
赵鹏翔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善支付日志处理,待处理支付流程中的日志输出
parent
a5a2e488
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
MiyaApplication.kt
app/src/main/java/com/miya/fastcashier/MiyaApplication.kt
+13
-0
MainActivity.kt
app/src/main/java/com/miya/fastcashier/ui/MainActivity.kt
+2
-0
No files found.
app/src/main/java/com/miya/fastcashier/MiyaApplication.kt
View file @
92d28b09
...
...
@@ -2,6 +2,7 @@ package com.miya.fastcashier
import
android.app.Activity
import
android.os.Bundle
import
android.os.Environment
import
com.blankj.utilcode.util.LogUtils
import
com.elvishew.xlog.LogConfiguration
import
com.elvishew.xlog.LogLevel
...
...
@@ -23,6 +24,7 @@ import com.miya.fastcashier.utils.manage.LocalKeyDataMKManageKit
import
com.miya.print.PrinterManager
import
com.sdy.miya.moblie.component.pay.core.net.MiYaPayMobileApiClient
import
com.sdy.miya.moblie.component.pay.core.net.MiyaHttpLoggingInterceptor
import
com.sdy.miya.moblie.component.pay.core.utils.PayLogFileUtils
import
com.tencent.mmkv.MMKV
import
java.io.File
import
java.util.*
...
...
@@ -77,6 +79,17 @@ class MiyaApplication : BaseApplication() {
filePrinter
)
//支付日志文件夹
PayLogFileUtils
.
initLogPath
(
Environment
.
getExternalStorageDirectory
().
path
+
File
.
separator
+
"miyaterminal"
+
File
.
separator
+
"log"
+
File
.
separator
+
"paylog"
+
File
.
separator
)
var
loggingInterceptor
:
MiyaHttpLoggingInterceptor
?
=
null
try
{
loggingInterceptor
=
MiyaHttpLoggingInterceptor
{
message
->
...
...
app/src/main/java/com/miya/fastcashier/ui/MainActivity.kt
View file @
92d28b09
...
...
@@ -25,6 +25,7 @@ import com.miya.fastcashier.utils.*
import
com.miya.fastcashier.utils.manage.AccountPasswordManageKit
import
com.miya.fastcashier.utils.manage.LocalKeyDataMKManageKit
import
com.miya.fastcashier.viewmodel.MainViewModel
import
com.sdy.miya.moblie.component.pay.core.utils.PayLogFileUtils
import
es.dmoral.toasty.Toasty
import
java.util.*
...
...
@@ -98,6 +99,7 @@ class MainActivity : BaseActivity() {
checkAccountPassword
()
OrderRecordManageKit
.
clearOrderDataYeaterday
()
LogFileUtils
.
deleteLog
(
LogFileUtils
.
DAYS_INTERVAL_LOG_DELETE
)
PayLogFileUtils
.
deleteLog
(
LogFileUtils
.
DAYS_INTERVAL_LOG_DELETE
)
}
private
fun
toRefund
()
{
...
...
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