|
|
@ -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);
|
|
|
|