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

@@ -109,19 +109,16 @@ public class YxNotifyController {
String md5 = request.getHeader("MD5");
String checkSum = request.getHeader("CheckSum");
String requestBody = readBody(request);
log.warn("收到云信");
boolean check = yunxinManager.checkNotify(requestBody, curTime, checkSum,md5);
if(!check){
log.info("检验失败!");
return ImCheckResp.ok();
}
log.warn("检验云信");
JSONObject body = JSON.parseObject(requestBody);
if(body == null){
return ImCheckResp.ok();
}
boolean message = imManager.filterMessage(body);
log.warn("完成云信 me{}",message);
if(message){
return ImCheckResp.ok();
}else{