docker构建
This commit is contained in:
@@ -37,11 +37,16 @@ public class SdfApiAdapterFactory {
|
||||
// bc adaptor
|
||||
return BcSdfApiAdaptor.INSTANCE;
|
||||
}
|
||||
switch (modelEnum) {
|
||||
case enc001:
|
||||
return Platform.isMac() ? getProxyRcpAdapter(ip, port) : new SunyardJnaSdfAdaptor(ip, port);
|
||||
default:
|
||||
throw new UnsupportedOperationException("不支持的设备型号: " + model);
|
||||
try {
|
||||
switch (modelEnum) {
|
||||
case enc001:
|
||||
return Platform.isMac() ? getProxyRcpAdapter(ip, port) : new SunyardJnaSdfAdaptor(ip, port);
|
||||
default:
|
||||
throw new UnsupportedOperationException("不支持的设备型号: " + model);
|
||||
}
|
||||
} catch (Throwable ex) {
|
||||
log.warn("build SdfApiAdapter error", ex);
|
||||
throw new IllegalArgumentException("build SdfApiAdapter error");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user