Commit 76d09bcadbac3d934c228958861a0b24d6f51458
1 parent
18a9f86a
修复sql注入 #1112
Showing
2 changed files
with
2 additions
and
3 deletions
src/main/java/com/genersoft/iot/vmp/service/impl/PlayServiceImpl.java
| ... | ... | @@ -553,7 +553,6 @@ public class PlayServiceImpl implements IPlayService { |
| 553 | 553 | // 处理收到200ok后的TCP主动连接以及SSRC不一致的问题 |
| 554 | 554 | InviteOKHandler(eventResult, ssrcInfo, mediaServerItem, device, channelId, |
| 555 | 555 | playBackTimeOutTaskKey, callback, inviteInfo, InviteSessionType.PLAYBACK); |
| 556 | - | |
| 557 | 556 | }, errorEvent); |
| 558 | 557 | } catch (InvalidArgumentException | SipException | ParseException e) { |
| 559 | 558 | logger.error("[命令发送失败] 录像回放: {}", e.getMessage()); | ... | ... |
src/main/java/com/genersoft/iot/vmp/storager/dao/PlatformChannelMapper.java
| ... | ... | @@ -117,6 +117,6 @@ public interface PlatformChannelMapper { |
| 117 | 117 | "where dc.channel_id = #{channelId} and pgc.platform_id=#{platformId}") |
| 118 | 118 | List<Device> queryDeviceInfoByPlatformIdAndChannelId(@Param("platformId") String platformId, @Param("channelId") String channelId); |
| 119 | 119 | |
| 120 | - @Select("SELECT pgc.platform_id from wvp_platform_gb_channel pgc left join wvp_device_channel dc on dc.id = pgc.device_channel_id WHERE dc.channel_id='${channelId}'") | |
| 121 | - List<String> queryParentPlatformByChannelId(String channelId); | |
| 120 | + @Select("SELECT pgc.platform_id from wvp_platform_gb_channel pgc left join wvp_device_channel dc on dc.id = pgc.device_channel_id WHERE dc.channel_id=#{channelId}") | |
| 121 | + List<String> queryParentPlatformByChannelId(@Param("channelId") String channelId); | |
| 122 | 122 | } | ... | ... |