123
This commit is contained in:
1 parent
7530acde5b
commit
f91140ea33
4 files changed
+116
-4
No files matched your search
+7
-1
@@ -9,6 +9,7 @@ import com.luqj.util.HttpHelper;
|
||||
import com.ruoyi.common.select.SelectItem;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import com.ruoyi.common.utils.TokenUtil;
|
||||
import com.ruoyi.system.domain.DmOperateVo;
|
||||
import com.ruoyi.system.domain.DmPlayerConfigPlus;
|
||||
import com.ruoyi.system.domain.DmPlayerent;
|
||||
@@ -154,7 +155,11 @@ public class DmPlayerentServiceImpl extends ServiceImpl<DmPlayerentMapper, DmPla
|
||||
*/
|
||||
@Override
|
||||
public DmPlayerent selectDmPlayerentById(Long id) {
|
||||
return dmPlayerentMapper.selectDmPlayerentById(id);
|
||||
DmPlayerent dmPlayerent = dmPlayerentMapper.selectDmPlayerentById(id);
|
||||
dmPlayerent.setMjpegUrl("http://" + dmPlayerent.getIp()+":8888/stream?token="
|
||||
+ TokenUtil.generateToken(dmPlayerent.getId()+"",dmPlayerent.getSecret()));
|
||||
dmPlayerent.setSecret(null);
|
||||
return dmPlayerent;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -168,6 +173,7 @@ public class DmPlayerentServiceImpl extends ServiceImpl<DmPlayerentMapper, DmPla
|
||||
List<DmPlayerent> list = dmPlayerentMapper.selectDmPlayerentList(dmPlayerent);
|
||||
List<Long> ids = new ArrayList<>();
|
||||
for (DmPlayerent playerent : list) {
|
||||
playerent.setSecret(null);
|
||||
ids.add(playerent.getId());
|
||||
}
|
||||
if (!ids.isEmpty()) {
|
||||
|
||||
Reference in new issue
Block a user