截图逻辑
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user