截图逻辑

This commit is contained in:
lu7213 committed 2026-03-07 16:17:48 +08:00
1 parent 30da249b6b
commit 1639b1e5fd
2 files changed
+190 -102

No files matched your search

@@ -60,6 +60,10 @@ public class EcDeviceServiceImpl extends ServiceImpl<EcDeviceMapper, EcDevicePlu
}
public String snapshop(String deviceCode) throws Exception {
EcDevicePlus device = selectEcDeviceByDeviceCode(deviceCode);
if (device == null || device.getStatus() == null || device.getStatus() == 0) {
return ruoYiConfig.getReqUrl() + "/ec/default/offline.png";
}
File file = new File(RuoYiConfig.getProfile() + "/ec/" + deviceCode + "/");
if (!file.exists()) {
file.mkdirs();