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
2cc0e1a6
Commit
2cc0e1a6
authored
May 05, 2022
by
赵鹏翔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除log
parent
226c176e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
LocalKeyDataMKManageKit.kt
.../miya/fastcashier/utils/manage/LocalKeyDataMKManageKit.kt
+0
-4
No files found.
app/src/main/java/com/miya/fastcashier/utils/manage/LocalKeyDataMKManageKit.kt
View file @
2cc0e1a6
...
...
@@ -27,14 +27,12 @@ class LocalKeyDataMKManageKit {
*/
fun
putBalanceDate
(
time
:
Long
)
{
getKeyDataMK
().
putLong
(
BALANCEDATE_ID
,
time
)
LogUtils
.
e
(
BALANCEDATE_ID
,
"putBalanceDate${getKeyDataMK().getLong(BALANCEDATE_ID, 0)}"
)
}
/**
* 获取结算时间
*/
fun
getBalanceDate
():
Long
{
LogUtils
.
e
(
BALANCEDATE_ID
,
"getBalanceDate${getKeyDataMK().getLong(BALANCEDATE_ID, 0)}"
)
return
getKeyDataMK
().
getLong
(
BALANCEDATE_ID
,
0
)
}
...
...
@@ -45,7 +43,6 @@ class LocalKeyDataMKManageKit {
* ②当获取的结算时间小于三天前的当前时间,则将结算时间重置为3天前的时间
*/
fun
handleCompliantBalanceDate
()
{
LogUtils
.
e
(
BALANCEDATE_ID
,
"handleCompliantBalanceDate"
)
var
balanceTime
=
getBalanceDate
()
if
(
balanceTime
<=
0L
)
{
//todo 如果返回有服务器时间建议改成服务器时间
...
...
@@ -56,7 +53,6 @@ class LocalKeyDataMKManageKit {
var
minimumTime
:
Long
=
System
.
currentTimeMillis
()
-
3
*
24
*
3600
*
1000
if
(
balanceTime
<=
minimumTime
)
{
putBalanceDate
(
minimumTime
)
LogUtils
.
e
(
BALANCEDATE_ID
,
"minimumTime:${DateUtils.format18(Date(minimumTime))}"
)
}
}
...
...
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