Commit d4a4f836 authored by zengtianlai3's avatar zengtianlai3

xss 测试

parent 24c8cb0f
......@@ -101,9 +101,8 @@ public class OperateController {
@MyLog(title = "获取告警列表", businessType = BusinessType.SELECT)
public ResResult<List<AlarmVo>> getAlarmList() {
String user = UserUtils.getLoginUserId();
int userI = Integer.valueOf(user);
userI = Integer.valueOf(XssUtil.checkXSS(String.valueOf(userI)));
List<AlarmVo> alarmList = alarmService.getAlarmList(userI);
int uId = Integer.valueOf(XssUtil.checkXSS(user));
List<AlarmVo> alarmList = alarmService.getAlarmList(uId);
return ResResult.success().goRecord(alarmList);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment