Commit 867088e0 authored by 周亚武's avatar 周亚武

钉钉相关接口

parent ede0b395
......@@ -67,6 +67,7 @@ public class DingMessageController {
@RequestParam(value = "timestamp", required = false) String timeStamp,
@RequestParam(value = "nonce", required = false) String nonce,
@RequestBody(required = false) JSONObject json) {
log.info("钉钉推送参数" + msg_signature+"---"+timeStamp+"---"+nonce+"---"+json.toJSONString() );
try {
// 从http请求中获取加解密参数
DingCallbackCrypto callbackCrypto = new DingCallbackCrypto(token, aesKey, appKey);
......@@ -85,8 +86,8 @@ public class DingMessageController {
else if("bpms_instance_change".equals(eventType)){ //请假等需要审批的消息
// 处理审批实例始末(审批任务开始、结束)
// 存入数据库
log.info("发生了:" + eventType + "事件" );
log.info("返回处理参数:" + eventJson.toJSONString() );
// log.info("发生了:" + eventType + "事件" );
// log.info("返回处理参数:" + eventJson.toJSONString() );
if(eventJson.getString("processInstanceId") != null){
Rest<String> rest = dingPersonService.getOaRecordsById(eventJson.getString("processInstanceId"));
log.info("审批详情:" + rest.getData());
......
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