This commit is contained in:
77
2024-08-01 15:48:26 +08:00
parent cb1ccccd4d
commit 78bd8b6593
2 changed files with 7 additions and 3 deletions

View File

@@ -160,7 +160,14 @@ public class ImManager {
if(filterSet.contains(RECORD_ID_FILTER)){
String ext = body.getString("ext");
JSONObject extJson = JSON.parseObject(ext);
if(extJson == null){
log.error("IM拦截成功! 拦截到用户脚本请求数据={}",body.toJSONString());
return false;
}
String recordId = extJson.getString("recordId");
if(StringUtils.isBlank(recordId)){
recordId = extJson.getString("record_id");
}
if(StringUtils.isEmpty(recordId) || "0".equals(recordId)){
log.error("IM拦截成功! 拦截到用户脚本请求数据={}",body.toJSONString());
return false;