update gpu 信息为空处理

This commit is contained in:
yyb
2026-01-22 15:58:55 +08:00
parent d2b041fdc8
commit 9faf80166d

View File

@@ -97,6 +97,9 @@ public class ServerChannelHandler extends SimpleChannelInboundHandler<ClientMess
Object params = msg.getParams();
GpuAndSoftMessage gpuAndSoftMessage = JSONUtil.toBean(params.toString(), GpuAndSoftMessage.class);
Map<String, GpuMessage> gpus = gpuAndSoftMessage.getGpus();
if(gpus == null || gpus.isEmpty()){
return;
}
List<String> miningsofts = gpuAndSoftMessage.getMiningsofts();
List<String> modelList = GpuBrand.trimBrand(gpus.values().stream().map(GpuMessage::getModel).collect(Collectors.toList()));
//挖矿软件公共配置