[6.7.0]
[fix] [乘客屏sn变化清楚缓存]
This commit is contained in:
@@ -39,6 +39,9 @@ object LoginLanPassengerSocket : IReceivedMsgListener, CallerBase<IOchLanPasseng
|
||||
if(newV.isNotEmpty()){
|
||||
OchChainLogManager.writeChainLogNetLanSocketConnect("局域网socket链接状态","sn 变化 已连接 sn${newV}")
|
||||
}
|
||||
if(oldV.isNotEmpty()){
|
||||
LoginStatusManager.removeLoginInfo()
|
||||
}
|
||||
M_LISTENERS.forEach {
|
||||
it.value.onDriverSnChagneListner(newV)
|
||||
}
|
||||
|
||||
@@ -42,4 +42,6 @@ interface LoginService :CommonService {
|
||||
|
||||
fun isOpenOrderType(): Boolean
|
||||
|
||||
fun removeLoginInfo()
|
||||
|
||||
}
|
||||
@@ -103,6 +103,11 @@ object LoginStatusManager : CallerBase<ILoginCallback>() {
|
||||
loginService?.setLoginStatus(loginStatus)
|
||||
}
|
||||
|
||||
|
||||
fun removeLoginInfo() {
|
||||
loginService?.removeLoginInfo()
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
fun getLoginStatus(): LoginStatusEnum {
|
||||
loginService?.let {
|
||||
|
||||
Reference in New Issue
Block a user