Commit d382071e authored by 周亚武's avatar 周亚武

钉钉相关接口

parent 56c5f0ba
...@@ -60,7 +60,7 @@ public class DingMessageController { ...@@ -60,7 +60,7 @@ public class DingMessageController {
public Map<String, String> getOaMessage(@RequestParam(value = "msg_signature", required = false) String msg_signature, public Map<String, String> getOaMessage(@RequestParam(value = "msg_signature", required = false) String msg_signature,
@RequestParam(value = "timestamp", required = false) String timeStamp, @RequestParam(value = "timestamp", required = false) String timeStamp,
@RequestParam(value = "nonce", required = false) String nonce, @RequestParam(value = "nonce", required = false) String nonce,
@RequestBody(required = false) JSONObject json) throws DingCallbackCrypto.DingTalkEncryptException { @RequestBody(required = false) JSONObject json) {
try { try {
// 1. 从http请求中获取加解密参数 // 1. 从http请求中获取加解密参数
...@@ -81,10 +81,14 @@ public class DingMessageController { ...@@ -81,10 +81,14 @@ public class DingMessageController {
if ("check_url".equals(eventType)) { if ("check_url".equals(eventType)) {
// 测试回调url的正确性 // 测试回调url的正确性
log.info("测试回调url的正确性"); log.info("测试回调url的正确性");
} else if ("user_add_org".equals(eventType)) { }
// 处理通讯录用户增加事件 else if("bpms_instance_change".equals(eventType)){ //请假等需要审批的消息
log.info("发生了:" + eventType + "事件"); // 处理审批实例始末(审批任务开始、结束)
} else { // 存入数据库
log.info("发生了:" + eventType + "事件" );
log.info("返回处理参数:" + eventJson.toJSONString() );
}
else {
// 添加其他已注册的 // 添加其他已注册的
log.info("发生了:" + eventType + "事件"); log.info("发生了:" + eventType + "事件");
} }
......
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