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
5da54f8d
Commit
5da54f8d
authored
Jun 01, 2022
by
赵鹏翔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
账户信息管理功能迁移至libcommon下
parent
449adba4
Show whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
55 additions
and
55 deletions
+55
-55
MiyaApplication.kt
app/src/main/java/com/miya/fastcashier/MiyaApplication.kt
+1
-1
ViewPayOrderData.kt
...rc/main/java/com/miya/fastcashier/dao/ViewPayOrderData.kt
+1
-1
LFilePickerActivity.java
...in/java/com/miya/fastcashier/log/LFilePickerActivity.java
+2
-2
SystemParameterDialog.kt
...in/java/com/miya/fastcashier/log/SystemParameterDialog.kt
+1
-1
ApiRequest.kt
app/src/main/java/com/miya/fastcashier/net/ApiRequest.kt
+2
-2
ApiService.kt
app/src/main/java/com/miya/fastcashier/net/ApiService.kt
+1
-1
RequestSignInterceptor.kt
...n/java/com/miya/fastcashier/net/RequestSignInterceptor.kt
+1
-1
ViewOrderStatisticsInfo.java
...om/miya/fastcashier/net/bean/ViewOrderStatisticsInfo.java
+1
-0
PayRepository.kt
...ain/java/com/miya/fastcashier/repository/PayRepository.kt
+1
-6
PrintService.kt
...rc/main/java/com/miya/fastcashier/service/PrintService.kt
+2
-1
LoginActivity.kt
app/src/main/java/com/miya/fastcashier/ui/LoginActivity.kt
+1
-1
MainActivity.kt
app/src/main/java/com/miya/fastcashier/ui/MainActivity.kt
+1
-1
SearchOrderActivity.kt
.../main/java/com/miya/fastcashier/ui/SearchOrderActivity.kt
+7
-4
AccountPasswordManageKit.kt
...miya/fastcashier/utils/manage/AccountPasswordManageKit.kt
+3
-3
LocalKeyDataMKManageKit.kt
.../miya/fastcashier/utils/manage/LocalKeyDataMKManageKit.kt
+1
-3
LoginViewModel.kt
...ain/java/com/miya/fastcashier/viewmodel/LoginViewModel.kt
+1
-1
MainViewModel.kt
...main/java/com/miya/fastcashier/viewmodel/MainViewModel.kt
+1
-1
PayViewModel.kt
.../main/java/com/miya/fastcashier/viewmodel/PayViewModel.kt
+1
-1
PrintViewModel.kt
...ain/java/com/miya/fastcashier/viewmodel/PrintViewModel.kt
+1
-1
BaseBean.java
...c/main/java/com/fastcashier/lib_common/base/BaseBean.java
+1
-2
AccountService.kt
...fastcashier/lib_common/function/account/AccountService.kt
+1
-3
SelfCashierAccountInfo.java
...r/lib_common/function/account/SelfCashierAccountInfo.java
+14
-9
SelfCashierTerminalConfig.java
...ib_common/function/account/SelfCashierTerminalConfig.java
+9
-8
CommonCallback.kt
...ain/java/com/fastcashier/lib_common/net/CommonCallback.kt
+0
-1
No files found.
app/src/main/java/com/miya/fastcashier/MiyaApplication.kt
View file @
5da54f8d
...
@@ -13,7 +13,7 @@ import com.elvishew.xlog.printer.file.FilePrinter
...
@@ -13,7 +13,7 @@ import com.elvishew.xlog.printer.file.FilePrinter
import
com.elvishew.xlog.printer.file.backup.NeverBackupStrategy
import
com.elvishew.xlog.printer.file.backup.NeverBackupStrategy
import
com.elvishew.xlog.printer.file.naming.DateFileNameGenerator
import
com.elvishew.xlog.printer.file.naming.DateFileNameGenerator
import
com.fastcashier.lib_common.BaseApplication
import
com.fastcashier.lib_common.BaseApplication
import
com.
miya.fastcashier.service
.AccountService
import
com.
fastcashier.lib_common.function.account
.AccountService
import
com.miya.fastcashier.utils.ContextUtils
import
com.miya.fastcashier.utils.ContextUtils
import
com.miya.fastcashier.utils.DateUtils
import
com.miya.fastcashier.utils.DateUtils
import
com.miya.fastcashier.utils.DensityUtils
import
com.miya.fastcashier.utils.DensityUtils
...
...
app/src/main/java/com/miya/fastcashier/dao/ViewPayOrderData.kt
View file @
5da54f8d
...
@@ -3,8 +3,8 @@ package com.miya.fastcashier.dao
...
@@ -3,8 +3,8 @@ package com.miya.fastcashier.dao
import
android.text.TextUtils
import
android.text.TextUtils
import
androidx.room.Entity
import
androidx.room.Entity
import
androidx.room.PrimaryKey
import
androidx.room.PrimaryKey
import
com.fastcashier.lib_common.function.account.AccountService
import
com.fastcashier.lib_common.util.isEmpty
import
com.fastcashier.lib_common.util.isEmpty
import
com.miya.fastcashier.service.AccountService
import
com.sdy.miya.moblie.component.pay.platform.bean.PayServiceResponse
import
com.sdy.miya.moblie.component.pay.platform.bean.PayServiceResponse
import
java.lang.RuntimeException
import
java.lang.RuntimeException
...
...
app/src/main/java/com/miya/fastcashier/log/LFilePickerActivity.java
View file @
5da54f8d
...
@@ -16,12 +16,12 @@ import com.blankj.utilcode.util.EncodeUtils;
...
@@ -16,12 +16,12 @@ import com.blankj.utilcode.util.EncodeUtils;
import
com.blankj.utilcode.util.LogUtils
;
import
com.blankj.utilcode.util.LogUtils
;
import
com.blankj.utilcode.util.StringUtils
;
import
com.blankj.utilcode.util.StringUtils
;
import
com.fastcashier.lib_common.BuildConfig
;
import
com.fastcashier.lib_common.BuildConfig
;
import
com.fastcashier.lib_common.function.account.AccountService
;
import
com.fastcashier.lib_common.function.account.SelfCashierTerminalConfig
;
import
com.fastcashier.lib_common.net.CommonCallback
;
import
com.fastcashier.lib_common.net.CommonCallback
;
import
com.miya.fastcashier.R
;
import
com.miya.fastcashier.R
;
import
com.miya.fastcashier.net.bean.SelfCashierTerminalConfig
;
import
com.miya.fastcashier.net.ApiRequest
;
import
com.miya.fastcashier.net.ApiRequest
;
import
com.miya.fastcashier.net.ApiService
;
import
com.miya.fastcashier.net.ApiService
;
import
com.miya.fastcashier.service.AccountService
;
import
com.miya.fastcashier.ui.BaseActivity
;
import
com.miya.fastcashier.ui.BaseActivity
;
import
com.miya.fastcashier.utils.LogFileUtils
;
import
com.miya.fastcashier.utils.LogFileUtils
;
...
...
app/src/main/java/com/miya/fastcashier/log/SystemParameterDialog.kt
View file @
5da54f8d
...
@@ -7,13 +7,13 @@ import android.view.View
...
@@ -7,13 +7,13 @@ import android.view.View
import
android.view.WindowManager
import
android.view.WindowManager
import
android.widget.TextView
import
android.widget.TextView
import
com.fastcashier.lib_common.BuildConfig
import
com.fastcashier.lib_common.BuildConfig
import
com.fastcashier.lib_common.function.account.AccountService.getAccountInfo
import
com.fastcashier.lib_common.net.ApiConfig.baseUrl
import
com.fastcashier.lib_common.net.ApiConfig.baseUrl
import
com.fastcashier.lib_common.util.getVersion
import
com.fastcashier.lib_common.util.getVersion
import
com.fastcashier.lib_common.util.getVersionCode
import
com.fastcashier.lib_common.util.getVersionCode
import
com.fastcashier.lib_common.util.getWifyName
import
com.fastcashier.lib_common.util.getWifyName
import
com.miya.fastcashier.R
import
com.miya.fastcashier.R
import
com.miya.fastcashier.databinding.DialogSystemParameterBinding
import
com.miya.fastcashier.databinding.DialogSystemParameterBinding
import
com.miya.fastcashier.service.AccountService.getAccountInfo
import
com.miya.fastcashier.utils.*
import
com.miya.fastcashier.utils.*
import
com.miya.print.PrinterManager
import
com.miya.print.PrinterManager
import
java.util.*
import
java.util.*
...
...
app/src/main/java/com/miya/fastcashier/net/ApiRequest.kt
View file @
5da54f8d
...
@@ -3,13 +3,13 @@ package com.miya.fastcashier.net
...
@@ -3,13 +3,13 @@ package com.miya.fastcashier.net
import
android.text.TextUtils
import
android.text.TextUtils
import
android.util.Log
import
android.util.Log
import
com.fastcashier.lib_common.BaseApplication
import
com.fastcashier.lib_common.BaseApplication
import
com.fastcashier.lib_common.function.account.SelfCashierAccountInfo
import
com.fastcashier.lib_common.function.account.SelfCashierTerminalConfig
import
com.fastcashier.lib_common.net.ApiConfig
import
com.fastcashier.lib_common.net.ApiConfig
import
com.fastcashier.lib_common.net.CommonCallback
import
com.fastcashier.lib_common.net.CommonCallback
import
com.fastcashier.lib_common.net.MiyaHttpLoggingInterceptor
import
com.fastcashier.lib_common.net.MiyaHttpLoggingInterceptor
import
com.fastcashier.lib_common.net.SSLCertificatesInit
import
com.fastcashier.lib_common.net.SSLCertificatesInit
import
com.miya.fastcashier.net.param.LoginParams
import
com.miya.fastcashier.net.param.LoginParams
import
com.miya.fastcashier.net.bean.SelfCashierAccountInfo
import
com.miya.fastcashier.net.bean.SelfCashierTerminalConfig
import
com.miya.fastcashier.utils.LogFileUtils
import
com.miya.fastcashier.utils.LogFileUtils
import
okhttp3.MultipartBody
import
okhttp3.MultipartBody
import
okhttp3.OkHttpClient
import
okhttp3.OkHttpClient
...
...
app/src/main/java/com/miya/fastcashier/net/ApiService.kt
View file @
5da54f8d
package
com.miya.fastcashier.net
package
com.miya.fastcashier.net
import
com.fastcashier.lib_common.function.account.SelfCashierAccountInfo
import
com.fastcashier.lib_common.net.ApiConfig
import
com.fastcashier.lib_common.net.ApiConfig
import
com.fastcashier.lib_common.net.BaseResponse
import
com.fastcashier.lib_common.net.BaseResponse
import
com.miya.fastcashier.net.param.LoginParams
import
com.miya.fastcashier.net.param.LoginParams
import
com.miya.fastcashier.net.bean.SelfCashierAccountInfo
import
okhttp3.MultipartBody
import
okhttp3.MultipartBody
import
retrofit2.Call
import
retrofit2.Call
import
retrofit2.http.*
import
retrofit2.http.*
...
...
app/src/main/java/com/miya/fastcashier/net/RequestSignInterceptor.kt
View file @
5da54f8d
package
com.miya.fastcashier.net
package
com.miya.fastcashier.net
import
com.fastcashier.lib_common.function.account.AccountService.getAccountInfo
import
com.fastcashier.lib_common.net.ApiConfig.getAuthorization
import
com.fastcashier.lib_common.net.ApiConfig.getAuthorization
import
com.miya.fastcashier.net.ApiService.Companion.wrapUrl
import
com.miya.fastcashier.net.ApiService.Companion.wrapUrl
import
com.miya.fastcashier.service.AccountService.getAccountInfo
import
okhttp3.Interceptor
import
okhttp3.Interceptor
import
okhttp3.Request
import
okhttp3.Request
import
okhttp3.Response
import
okhttp3.Response
...
...
app/src/main/java/com/miya/fastcashier/net/bean/ViewOrderStatisticsInfo.java
View file @
5da54f8d
...
@@ -2,6 +2,7 @@ package com.miya.fastcashier.net.bean;
...
@@ -2,6 +2,7 @@ package com.miya.fastcashier.net.bean;
import
android.text.TextUtils
;
import
android.text.TextUtils
;
import
com.fastcashier.lib_common.base.BaseBean
;
import
com.sdy.miya.moblie.component.pay.platform.bean.BaseDO
;
import
com.sdy.miya.moblie.component.pay.platform.bean.BaseDO
;
import
com.sdy.miya.moblie.component.pay.platform.bean.QueryTradesByTimeResponse
;
import
com.sdy.miya.moblie.component.pay.platform.bean.QueryTradesByTimeResponse
;
...
...
app/src/main/java/com/miya/fastcashier/repository/PayRepository.kt
View file @
5da54f8d
package
com.miya.fastcashier.repository
package
com.miya.fastcashier.repository
import
android.text.TextUtils
import
android.text.TextUtils
import
android.util.Log
import
androidx.annotation.WorkerThread
import
androidx.annotation.WorkerThread
import
com.blankj.utilcode.util.LogUtils
import
com.fastcashier.lib_common.function.account.AccountService
import
com.miya.fastcashier.service.AccountService
import
com.miya.fastcashier.utils.DateUtils
import
com.miya.fastcashier.utils.DateUtils
import
com.sdy.miya.moblie.component.pay.core.constance.AppTagConstance
import
com.sdy.miya.moblie.component.pay.core.constance.AppTagConstance
import
com.sdy.miya.moblie.component.pay.core.result.MiYaMobilePayResult
import
com.sdy.miya.moblie.component.pay.core.result.ResultBuilder
import
com.sdy.miya.moblie.component.pay.core.result.ResultBuilder
import
com.sdy.miya.moblie.component.pay.platform.MiYaPlatformPayService
import
com.sdy.miya.moblie.component.pay.platform.MiYaPlatformPayService
import
com.sdy.miya.moblie.component.pay.platform.bean.PayServiceResponse
import
com.sdy.miya.moblie.component.pay.platform.bean.PayServiceResponse
import
com.sdy.miya.moblie.component.pay.platform.bean.QueryTradesByTimeResponse
import
com.sdy.miya.moblie.component.pay.platform.bean.QueryTradesByTimeResponse
import
java.lang.Exception
import
java.text.SimpleDateFormat
import
java.util.*
import
java.util.*
/**
/**
...
...
app/src/main/java/com/miya/fastcashier/service/PrintService.kt
View file @
5da54f8d
package
com.miya.fastcashier.service
package
com.miya.fastcashier.service
import
android.text.TextUtils
import
android.text.TextUtils
import
com.fastcashier.lib_common.function.account.AccountService
import
com.fastcashier.lib_common.function.account.SelfCashierAccountInfo
import
com.fastcashier.lib_common.util.isEmpty
import
com.fastcashier.lib_common.util.isEmpty
import
com.miya.fastcashier.net.bean.SelfCashierAccountInfo
import
com.miya.fastcashier.net.bean.ViewOrderStatisticsInfo
import
com.miya.fastcashier.net.bean.ViewOrderStatisticsInfo
import
com.miya.fastcashier.utils.DateUtils
import
com.miya.fastcashier.utils.DateUtils
import
com.miya.fastcashier.utils.MiYaPayPlantformPayWayEnum
import
com.miya.fastcashier.utils.MiYaPayPlantformPayWayEnum
...
...
app/src/main/java/com/miya/fastcashier/ui/LoginActivity.kt
View file @
5da54f8d
...
@@ -14,8 +14,8 @@ import androidx.appcompat.app.AppCompatActivity
...
@@ -14,8 +14,8 @@ import androidx.appcompat.app.AppCompatActivity
import
androidx.lifecycle.Observer
import
androidx.lifecycle.Observer
import
androidx.lifecycle.ViewModelProvider
import
androidx.lifecycle.ViewModelProvider
import
com.blankj.utilcode.util.ToastUtils
import
com.blankj.utilcode.util.ToastUtils
import
com.fastcashier.lib_common.function.account.AccountService
import
com.miya.fastcashier.databinding.ActivityLoginBinding
import
com.miya.fastcashier.databinding.ActivityLoginBinding
import
com.miya.fastcashier.service.AccountService
import
com.miya.fastcashier.utils.clickWithTrigger
import
com.miya.fastcashier.utils.clickWithTrigger
import
com.miya.fastcashier.utils.manage.LocalKeyDataMKManageKit
import
com.miya.fastcashier.utils.manage.LocalKeyDataMKManageKit
import
com.miya.fastcashier.viewmodel.LoginViewModel
import
com.miya.fastcashier.viewmodel.LoginViewModel
...
...
app/src/main/java/com/miya/fastcashier/ui/MainActivity.kt
View file @
5da54f8d
...
@@ -7,9 +7,9 @@ import android.widget.Toast
...
@@ -7,9 +7,9 @@ import android.widget.Toast
import
androidx.appcompat.app.AppCompatActivity
import
androidx.appcompat.app.AppCompatActivity
import
androidx.fragment.app.FragmentManager
import
androidx.fragment.app.FragmentManager
import
androidx.lifecycle.ViewModelProvider
import
androidx.lifecycle.ViewModelProvider
import
com.fastcashier.lib_common.function.account.AccountService
import
com.miya.fastcashier.R
import
com.miya.fastcashier.R
import
com.miya.fastcashier.databinding.ActivityMainBinding
import
com.miya.fastcashier.databinding.ActivityMainBinding
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.ui.dialog.CommonDialog
import
com.miya.fastcashier.ui.dialog.CommonDialog
...
...
app/src/main/java/com/miya/fastcashier/ui/SearchOrderActivity.kt
View file @
5da54f8d
...
@@ -15,17 +15,20 @@ import androidx.recyclerview.widget.LinearLayoutManager
...
@@ -15,17 +15,20 @@ import androidx.recyclerview.widget.LinearLayoutManager
import
androidx.recyclerview.widget.RecyclerView
import
androidx.recyclerview.widget.RecyclerView
import
androidx.viewpager2.adapter.FragmentStateAdapter
import
androidx.viewpager2.adapter.FragmentStateAdapter
import
com.elvishew.xlog.XLog
import
com.elvishew.xlog.XLog
import
com.fastcashier.lib_common.function.account.AccountService
import
com.fastcashier.lib_common.util.dp2px
import
com.fastcashier.lib_common.util.dp2px
import
com.google.android.material.tabs.TabLayoutMediator
import
com.google.android.material.tabs.TabLayoutMediator
import
com.miya.fastcashier.R
import
com.miya.fastcashier.R
import
com.miya.fastcashier.dao.ViewPayOrderData
import
com.miya.fastcashier.dao.PayDataDao
import
com.miya.fastcashier.dao.PayDataDao
import
com.miya.fastcashier.dao.ViewPayOrderData
import
com.miya.fastcashier.databinding.ActivitySearchOrderBinding
import
com.miya.fastcashier.databinding.ActivitySearchOrderBinding
import
com.miya.fastcashier.databinding.FragmentSearchOrderBinding
import
com.miya.fastcashier.databinding.FragmentSearchOrderBinding
import
com.miya.fastcashier.databinding.ItemSearchOrderListBinding
import
com.miya.fastcashier.databinding.ItemSearchOrderListBinding
import
com.miya.fastcashier.service.AccountService
import
com.miya.fastcashier.service.PrintService
import
com.miya.fastcashier.service.PrintService
import
com.miya.fastcashier.utils.*
import
com.miya.fastcashier.utils.CenterToasty
import
com.miya.fastcashier.utils.MiYaPayPlantformPayWayEnum
import
com.miya.fastcashier.utils.StringPriceFormat
import
com.miya.fastcashier.utils.clickWithTrigger
import
com.miya.fastcashier.utils.manage.LocalKeyDataMKManageKit
import
com.miya.fastcashier.utils.manage.LocalKeyDataMKManageKit
import
com.miya.fastcashier.viewmodel.SearchOrderViewModel
import
com.miya.fastcashier.viewmodel.SearchOrderViewModel
...
@@ -192,7 +195,7 @@ class SearchOrderFragment(val payType: MiYaPayPlantformPayWayEnum.MiyaPayType) :
...
@@ -192,7 +195,7 @@ class SearchOrderFragment(val payType: MiYaPayPlantformPayWayEnum.MiyaPayType) :
private
fun
loadMore
(
loadIndex
:
Int
)
{
private
fun
loadMore
(
loadIndex
:
Int
)
{
//加载更多
//加载更多
// vm.getPayData(payType, loadIndex)
// vm.getPayData(payType, loadIndex)
vm
.
getPayDataByTimeAndUser
(
payType
,
AccountService
.
getUserName
(),
balanceDate
)
vm
.
getPayDataByTimeAndUser
(
payType
,
AccountService
.
getUserName
(),
balanceDate
)
// onLoading = true
// onLoading = true
}
}
...
...
app/src/main/java/com/miya/fastcashier/utils/manage/AccountPasswordManageKit.kt
View file @
5da54f8d
...
@@ -7,9 +7,9 @@ import androidx.appcompat.app.AppCompatActivity
...
@@ -7,9 +7,9 @@ import androidx.appcompat.app.AppCompatActivity
import
com.blankj.utilcode.util.FileIOUtils
import
com.blankj.utilcode.util.FileIOUtils
import
com.blankj.utilcode.util.FileUtils
import
com.blankj.utilcode.util.FileUtils
import
com.blankj.utilcode.util.ToastUtils
import
com.blankj.utilcode.util.ToastUtils
import
com.
miya.fastcashier.service
.AccountService.getAccountPassword
import
com.
fastcashier.lib_common.function.account
.AccountService.getAccountPassword
import
com.
miya.fastcashier.service
.AccountService.getUserName
import
com.
fastcashier.lib_common.function.account
.AccountService.getUserName
import
com.
miya.fastcashier.service
.AccountService.setAccountPassword
import
com.
fastcashier.lib_common.function.account
.AccountService.setAccountPassword
import
com.permissionx.guolindev.PermissionX
import
com.permissionx.guolindev.PermissionX
import
java.util.concurrent.Executors
import
java.util.concurrent.Executors
...
...
app/src/main/java/com/miya/fastcashier/utils/manage/LocalKeyDataMKManageKit.kt
View file @
5da54f8d
package
com.miya.fastcashier.utils.manage
package
com.miya.fastcashier.utils.manage
import
com.blankj.utilcode.util.LogUtils
import
com.fastcashier.lib_common.function.account.AccountService
import
com.miya.fastcashier.service.AccountService
import
com.miya.fastcashier.utils.DateUtils
import
com.tencent.mmkv.MMKV
import
com.tencent.mmkv.MMKV
import
java.util.*
import
java.util.*
...
...
app/src/main/java/com/miya/fastcashier/viewmodel/LoginViewModel.kt
View file @
5da54f8d
...
@@ -4,11 +4,11 @@ import androidx.lifecycle.LiveData
...
@@ -4,11 +4,11 @@ import androidx.lifecycle.LiveData
import
androidx.lifecycle.MutableLiveData
import
androidx.lifecycle.MutableLiveData
import
androidx.lifecycle.ViewModel
import
androidx.lifecycle.ViewModel
import
androidx.lifecycle.viewModelScope
import
androidx.lifecycle.viewModelScope
import
com.fastcashier.lib_common.function.account.SelfCashierAccountInfo
import
com.fastcashier.lib_common.net.CommonCallback
import
com.fastcashier.lib_common.net.CommonCallback
import
com.miya.fastcashier.R
import
com.miya.fastcashier.R
import
com.miya.fastcashier.net.param.LoginFormState
import
com.miya.fastcashier.net.param.LoginFormState
import
com.miya.fastcashier.net.param.LoginParams
import
com.miya.fastcashier.net.param.LoginParams
import
com.miya.fastcashier.net.bean.SelfCashierAccountInfo
import
com.miya.fastcashier.net.ApiRequest
import
com.miya.fastcashier.net.ApiRequest
import
kotlinx.coroutines.Dispatchers
import
kotlinx.coroutines.Dispatchers
import
kotlinx.coroutines.launch
import
kotlinx.coroutines.launch
...
...
app/src/main/java/com/miya/fastcashier/viewmodel/MainViewModel.kt
View file @
5da54f8d
...
@@ -3,9 +3,9 @@ package com.miya.fastcashier.viewmodel
...
@@ -3,9 +3,9 @@ package com.miya.fastcashier.viewmodel
import
androidx.lifecycle.MutableLiveData
import
androidx.lifecycle.MutableLiveData
import
androidx.lifecycle.ViewModel
import
androidx.lifecycle.ViewModel
import
androidx.lifecycle.viewModelScope
import
androidx.lifecycle.viewModelScope
import
com.fastcashier.lib_common.function.account.AccountService
import
com.miya.fastcashier.net.bean.ViewOrderStatisticsInfo
import
com.miya.fastcashier.net.bean.ViewOrderStatisticsInfo
import
com.miya.fastcashier.repository.PayRepository
import
com.miya.fastcashier.repository.PayRepository
import
com.miya.fastcashier.service.AccountService
import
com.miya.fastcashier.service.PrintService
import
com.miya.fastcashier.service.PrintService
import
com.miya.fastcashier.utils.DateUtils
import
com.miya.fastcashier.utils.DateUtils
import
kotlinx.coroutines.Dispatchers
import
kotlinx.coroutines.Dispatchers
...
...
app/src/main/java/com/miya/fastcashier/viewmodel/PayViewModel.kt
View file @
5da54f8d
...
@@ -6,9 +6,9 @@ import androidx.lifecycle.ViewModel
...
@@ -6,9 +6,9 @@ import androidx.lifecycle.ViewModel
import
androidx.lifecycle.viewModelScope
import
androidx.lifecycle.viewModelScope
import
com.alibaba.fastjson.JSON
import
com.alibaba.fastjson.JSON
import
com.elvishew.xlog.XLog
import
com.elvishew.xlog.XLog
import
com.fastcashier.lib_common.function.account.AccountService
import
com.miya.fastcashier.dao.ViewPayOrderData
import
com.miya.fastcashier.dao.ViewPayOrderData
import
com.miya.fastcashier.repository.PayRepository
import
com.miya.fastcashier.repository.PayRepository
import
com.miya.fastcashier.service.AccountService
import
com.miya.fastcashier.service.PrintService
import
com.miya.fastcashier.service.PrintService
import
com.sdy.miya.moblie.component.pay.platform.bean.PayServiceResponse
import
com.sdy.miya.moblie.component.pay.platform.bean.PayServiceResponse
import
kotlinx.coroutines.Dispatchers
import
kotlinx.coroutines.Dispatchers
...
...
app/src/main/java/com/miya/fastcashier/viewmodel/PrintViewModel.kt
View file @
5da54f8d
...
@@ -3,7 +3,7 @@ package com.miya.fastcashier.viewmodel
...
@@ -3,7 +3,7 @@ package com.miya.fastcashier.viewmodel
import
androidx.lifecycle.MutableLiveData
import
androidx.lifecycle.MutableLiveData
import
androidx.lifecycle.ViewModel
import
androidx.lifecycle.ViewModel
import
androidx.lifecycle.viewModelScope
import
androidx.lifecycle.viewModelScope
import
com.
miya.fastcashier.service
.AccountService
import
com.
fastcashier.lib_common.function.account
.AccountService
import
com.miya.fastcashier.service.PrintService
import
com.miya.fastcashier.service.PrintService
import
com.sdy.miya.moblie.component.pay.platform.bean.PayServiceResponse
import
com.sdy.miya.moblie.component.pay.platform.bean.PayServiceResponse
import
kotlinx.coroutines.Dispatchers
import
kotlinx.coroutines.Dispatchers
...
...
app/src/main/java/com/miya/fastcashier/net/bean
/BaseBean.java
→
lib_common/src/main/java/com/fastcashier/lib_common/base
/BaseBean.java
View file @
5da54f8d
package
com
.
miya
.
fastcashier
.
net
.
bean
;
package
com
.
fastcashier
.
lib_common
.
base
;
import
java.io.Serializable
;
import
java.io.Serializable
;
/**
/**
* 基础DO类,提供toString快方法
* 基础DO类,提供toString快方法
* Created by fys on 2016/3/31.
*/
*/
public
class
BaseBean
implements
Serializable
{
public
class
BaseBean
implements
Serializable
{
...
...
app/src/main/java/com/miya/fastcashier/service
/AccountService.kt
→
lib_common/src/main/java/com/fastcashier/lib_common/function/account
/AccountService.kt
View file @
5da54f8d
package
com.miya.fastcashier.service
package
com.fastcashier.lib_common.function.account
import
com.miya.fastcashier.net.bean.SelfCashierAccountInfo
object
AccountService
{
object
AccountService
{
...
...
app/src/main/java/com/miya/fastcashier/net/bean
/SelfCashierAccountInfo.java
→
lib_common/src/main/java/com/fastcashier/lib_common/function/account
/SelfCashierAccountInfo.java
View file @
5da54f8d
package
com
.
miya
.
fastcashier
.
net
.
bean
;
package
com
.
fastcashier
.
lib_common
.
function
.
account
;
import
android.text.TextUtils
;
import
android.text.TextUtils
;
import
com.fastcashier.lib_common.base.BaseBean
;
import
com.google.gson.annotations.SerializedName
;
import
com.google.gson.annotations.SerializedName
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
/**
/**
* 非米雅渠道 自助结算终端用户信息类
* 类描述:基础信息类
* Created by fengyu on 2018/4/8.
* 概述:非米雅渠道 自助结算终端用户信息类
* 创建人:zpxiang
* 创建时间:2022/6/1
* 修改人:
* 修改时间:
*/
*/
public
class
SelfCashierAccountInfo
extends
BaseBean
{
public
class
SelfCashierAccountInfo
extends
BaseBean
{
@SerializedName
(
"store"
)
@SerializedName
(
"store"
)
private
S
elfCashierAccountInfo
.
S
hopInfo
shopInfo
;
private
ShopInfo
shopInfo
;
@SerializedName
(
"accessToken"
)
@SerializedName
(
"accessToken"
)
private
SelfCashierAccountInfo
.
AccessToken
accessToken
;
private
AccessToken
accessToken
;
public
SelfCashierAccountInfo
.
AccessToken
getAccessToken
()
{
public
AccessToken
getAccessToken
()
{
return
accessToken
;
return
accessToken
;
}
}
public
void
setAccessToken
(
SelfCashierAccountInfo
.
AccessToken
accessToken
)
{
public
void
setAccessToken
(
AccessToken
accessToken
)
{
this
.
accessToken
=
accessToken
;
this
.
accessToken
=
accessToken
;
}
}
public
S
elfCashierAccountInfo
.
S
hopInfo
getShopInfo
()
{
public
ShopInfo
getShopInfo
()
{
return
shopInfo
;
return
shopInfo
;
}
}
public
void
setShopInfo
(
S
elfCashierAccountInfo
.
S
hopInfo
shopInfo
)
{
public
void
setShopInfo
(
ShopInfo
shopInfo
)
{
this
.
shopInfo
=
shopInfo
;
this
.
shopInfo
=
shopInfo
;
}
}
...
...
app/src/main/java/com/miya/fastcashier/net/bean
/SelfCashierTerminalConfig.java
→
lib_common/src/main/java/com/fastcashier/lib_common/function/account
/SelfCashierTerminalConfig.java
View file @
5da54f8d
package
com
.
miya
.
fastcashier
.
net
.
bean
;
package
com
.
fastcashier
.
lib_common
.
function
.
account
;
import
com.fastcashier.lib_common.base.BaseBean
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
/**
/**
* 自助收银终端 应用配置信息
* 类描述:基础应用信息类
* Created by fengyu on 2018/6/28.
* 概述:自助收银终端应用配置信息
* 创建人:zpxiang
* 创建时间:2022/6/1
* 修改人:
* 修改时间:
*/
*/
public
class
SelfCashierTerminalConfig
extends
BaseBean
{
public
class
SelfCashierTerminalConfig
extends
BaseBean
{
...
@@ -151,7 +157,6 @@ public class SelfCashierTerminalConfig extends BaseBean {
...
@@ -151,7 +157,6 @@ public class SelfCashierTerminalConfig extends BaseBean {
private
boolean
isSdkPayDiscPosterShow
;
private
boolean
isSdkPayDiscPosterShow
;
public
boolean
isSdkPayDiscPosterShow
()
{
public
boolean
isSdkPayDiscPosterShow
()
{
return
isSdkPayDiscPosterShow
;
return
isSdkPayDiscPosterShow
;
}
}
...
@@ -585,8 +590,6 @@ public class SelfCashierTerminalConfig extends BaseBean {
...
@@ -585,8 +590,6 @@ public class SelfCashierTerminalConfig extends BaseBean {
private
boolean
useETicket
;
private
boolean
useETicket
;
public
boolean
isMerchantOperatePageEnable
()
{
public
boolean
isMerchantOperatePageEnable
()
{
return
merchantOperatePageEnable
;
return
merchantOperatePageEnable
;
}
}
...
@@ -930,14 +933,12 @@ public class SelfCashierTerminalConfig extends BaseBean {
...
@@ -930,14 +933,12 @@ public class SelfCashierTerminalConfig extends BaseBean {
private
String
extData
;
private
String
extData
;
/**
/**
* 商户特殊功能开关解析类
* 商户特殊功能开关解析类
*/
*/
private
String
merchantFunctionSerializableClass
;
private
String
merchantFunctionSerializableClass
;
/**
/**
* 扫描会员弹框提示文案
* 扫描会员弹框提示文案
*/
*/
...
...
lib_common/src/main/java/com/fastcashier/lib_common/net/CommonCallback.kt
View file @
5da54f8d
...
@@ -3,7 +3,6 @@ package com.fastcashier.lib_common.net
...
@@ -3,7 +3,6 @@ package com.fastcashier.lib_common.net
import
android.util.Log
import
android.util.Log
import
com.fastcashier.lib_common.BaseApplication.Companion.getApplication
import
com.fastcashier.lib_common.BaseApplication.Companion.getApplication
import
com.fastcashier.lib_common.R
import
com.fastcashier.lib_common.R
import
com.fastcashier.lib_common.net.BaseResponse
import
com.fastcashier.lib_common.util.isNetworkConnected
import
com.fastcashier.lib_common.util.isNetworkConnected
import
retrofit2.Call
import
retrofit2.Call
import
retrofit2.Callback
import
retrofit2.Callback
...
...
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