|
|
@ -1,6 +1,5 @@ |
|
|
|
package a8k.service.state_service; |
|
|
|
|
|
|
|
import a8k.service.appdb.entity.AppUsr; |
|
|
|
import com.fasterxml.jackson.core.JsonProcessingException; |
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper; |
|
|
|
import com.iflytop.uf.UfActiveRecord; |
|
|
@ -24,8 +23,8 @@ public class A8kStateMgrService { |
|
|
|
public static final Logger logger = LoggerFactory.getLogger(A8kStateMgrService.class); |
|
|
|
|
|
|
|
|
|
|
|
AppUsr appusr; //用户是否登录 |
|
|
|
AppUsr debugPageUsr; //调试页面用户是否登录 |
|
|
|
// AppUsr appusr; //用户是否登录 |
|
|
|
// AppUsr debugPageUsr; //调试页面用户是否登录 |
|
|
|
|
|
|
|
Boolean deviceInited = false; //设备是否初始化过 |
|
|
|
Boolean devicePoweredOffNormally = false; //设备是否正常关机 |
|
|
@ -41,30 +40,30 @@ public class A8kStateMgrService { |
|
|
|
// |
|
|
|
// 用户状态 |
|
|
|
// |
|
|
|
public void loginAppUsr(@NotNull AppUsr appusr) { |
|
|
|
this.appusr = appusr; |
|
|
|
} |
|
|
|
|
|
|
|
public void unloginAppUsr() { |
|
|
|
this.appusr = null; |
|
|
|
} |
|
|
|
|
|
|
|
public boolean isAppUsrLogin() { |
|
|
|
return appusr != null; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void loginDebugPageUsr(@NotNull AppUsr debugPageUsr) { |
|
|
|
this.debugPageUsr = debugPageUsr; |
|
|
|
} |
|
|
|
|
|
|
|
public void unloginDebugPageUsr() { |
|
|
|
this.debugPageUsr = null; |
|
|
|
} |
|
|
|
|
|
|
|
public boolean isDebugPageUsrLogin() { |
|
|
|
return debugPageUsr != null; |
|
|
|
} |
|
|
|
// public void loginAppUsr(@NotNull AppUsr appusr) { |
|
|
|
// this.appusr = appusr; |
|
|
|
// } |
|
|
|
// |
|
|
|
// public void unloginAppUsr() { |
|
|
|
// this.appusr = null; |
|
|
|
// } |
|
|
|
// |
|
|
|
// public boolean isAppUsrLogin() { |
|
|
|
// return appusr != null; |
|
|
|
// } |
|
|
|
// |
|
|
|
// |
|
|
|
// public void loginDebugPageUsr(@NotNull AppUsr debugPageUsr) { |
|
|
|
// this.debugPageUsr = debugPageUsr; |
|
|
|
// } |
|
|
|
// |
|
|
|
// public void unloginDebugPageUsr() { |
|
|
|
// this.debugPageUsr = null; |
|
|
|
// } |
|
|
|
// |
|
|
|
// public boolean isDebugPageUsrLogin() { |
|
|
|
// return debugPageUsr != null; |
|
|
|
// } |
|
|
|
|
|
|
|
// |
|
|
|
// 设备初始化状态 |
|
|
|