Commit f534bbdf authored by shiyu's avatar shiyu

安全识别3

parent e73f144a
......@@ -94,6 +94,7 @@ public class QdAppletCallbackController {
output.write(by, 0, length);
}
String noticeStr = new String(output.toByteArray(), "UTF-8");
logger.info("微信内容安全审核异步通知原文:{}", noticeStr);
String result = JsonUtils.getValueByPath(noticeStr, "result/suggest");
String traceId = JsonUtils.getValueByPath(noticeStr, "trace_id");
WxCheckRecord wxCheckRecord = wxCheckRecordDao.findByTraceId(traceId);
......@@ -128,7 +129,6 @@ public class QdAppletCallbackController {
String key = CommConsts.QIANDAO_CHECK_RESULT_KEY + userId;
redisUtils.set(key, result);
}
logger.info("微信内容安全审核异步通知原文:{}", noticeStr);
} catch (Exception e) {
logger.error("微信公众号通知回调接口 error : {}", e);
} finally {
......
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