回调接口配置
continuous-integration/drone/push Build is passing Details

于相涌/mail
YXY 1 year ago
parent 83458c67fe
commit d5e1410857

@ -30,9 +30,13 @@ public class EventController extends BaseController {
} }
log.info("/event/test1/approval request:{}", jsonObject.toJSONString()); log.info("/event/test1/approval request:{}", jsonObject.toJSONString());
if (jsonObject.containsKey("encrypt")) { if (jsonObject.containsKey("encrypt")) {
result = DecryptUtil.decrypt(jsonObject.getString("encrypt")); String res = DecryptUtil.decrypt(jsonObject.getString("encrypt"));
jsonObject = JSONObject.parseObject(res);
log.info("/event/test1/approval encrypt:{}", JSONObject.toJSONString(result)); log.info("/event/test1/approval encrypt:{}", JSONObject.toJSONString(result));
} }
if (jsonObject.containsKey("challenge")) {
result = jsonObject.getString("challenge");
}
RequestVo larkRequest = new RequestVo(); RequestVo larkRequest = new RequestVo();
larkRequest.setMessage(result); larkRequest.setMessage(result);
larkFactory.execute(larkRequest); larkFactory.execute(larkRequest);

Loading…
Cancel
Save