improvement: device 更名为 env
This commit is contained in:
@@ -3,7 +3,7 @@ package net.geedge.api.util;
|
||||
import cn.hutool.core.codec.Base32Codec;
|
||||
import cn.hutool.core.thread.NamedThreadFactory;
|
||||
import cn.hutool.log.Log;
|
||||
import net.geedge.api.entity.DeviceApiYml;
|
||||
import net.geedge.api.entity.EnvApiYml;
|
||||
import net.geedge.common.APIException;
|
||||
import net.geedge.common.Constant;
|
||||
import net.geedge.common.RCode;
|
||||
@@ -38,7 +38,7 @@ public class AdbUtil {
|
||||
public record CommandResult(Integer exitCode, String output) {
|
||||
}
|
||||
|
||||
private AdbUtil(DeviceApiYml.Adb adb) {
|
||||
private AdbUtil(EnvApiYml.Adb adb) {
|
||||
this.serial = T.StrUtil.emptyToDefault(adb.getSerial(), "");
|
||||
this.host = adb.getHost();
|
||||
this.port = adb.getPort();
|
||||
@@ -48,7 +48,7 @@ public class AdbUtil {
|
||||
this.init();
|
||||
}
|
||||
|
||||
public static AdbUtil getInstance(DeviceApiYml.Adb connInfo) {
|
||||
public static AdbUtil getInstance(EnvApiYml.Adb connInfo) {
|
||||
if (instance == null) {
|
||||
synchronized (AdbUtil.class) {
|
||||
if (instance == null) {
|
||||
|
||||
Reference in New Issue
Block a user