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
ee5392d8
Commit
ee5392d8
authored
May 25, 2022
by
赵鹏翔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打印添加延迟,整理打印类
parent
7285e612
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
212 additions
and
186 deletions
+212
-186
PrintService.kt
...rc/main/java/com/miya/fastcashier/service/PrintService.kt
+211
-185
PrintViewModel.kt
...ain/java/com/miya/fastcashier/viewmodel/PrintViewModel.kt
+1
-1
No files found.
app/src/main/java/com/miya/fastcashier/service/PrintService.kt
View file @
ee5392d8
This diff is collapsed.
Click to expand it.
app/src/main/java/com/miya/fastcashier/viewmodel/PrintViewModel.kt
View file @
ee5392d8
...
...
@@ -18,7 +18,7 @@ class PrintViewModel : ViewModel() {
viewModelScope
.
launch
(
Dispatchers
.
IO
){
try
{
AccountService
.
getAccountInfo
()
?.
let
{
PrintService
.
pay
Info
Print
(
payServiceResponse
,
it
)
PrintService
.
payPrint
(
payServiceResponse
,
it
)
}
printResultLiveData
.
postValue
(
Result
.
success
(
Any
()))
}
catch
(
e
:
Exception
){
...
...
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