Commit 759b05a3 authored by 赵啸非's avatar 赵啸非

修改自动考核

parent d4c360d8
......@@ -70,11 +70,20 @@ public class DingPersonServiceImpl extends AbstractDingTalkService implements ID
OapiMessageCorpconversationAsyncsendV2Request req = new OapiMessageCorpconversationAsyncsendV2Request();
req.setAgentId(agentId);
req.setUseridList(workMsgReq.getUseridList());
req.setMsg(JSON.toJSONString(workMsgReq.getMsg()));
//.setMsg(JSON.toJSONString(workMsgReq.getMsg()));
workMsgReq.getMsg().getLink().setPicUrl("@lADOADmaWMzazQKA");
OapiMessageCorpconversationAsyncsendV2Request.Msg msg = new OapiMessageCorpconversationAsyncsendV2Request.Msg();
OapiMessageCorpconversationAsyncsendV2Request.Link link = new OapiMessageCorpconversationAsyncsendV2Request.Link();
link.setMessageUrl(workMsgReq.getMsg().getLink().getMessageUrl());
link.setText(workMsgReq.getMsg().getLink().getText());
link.setTitle(workMsgReq.getMsg().getLink().getTitle());
link.setPicUrl("@lADOADmaWMzazQKA");
msg.setLink(link);
req.setMsg(msg);
log.info("sendWorkMsg:{}", JSON.toJSONString(workMsgReq));
// workMsgReq.getMsg().getLink().setPicUrl("@lADOADmaWMzazQKA");
log.info("sendWorkMsg:{}", JSON.toJSONString(req));
OapiMessageCorpconversationAsyncsendV2Response rsp = client.execute(req, getToken());
log.info("OapiMessageResponse:{}", rsp.getBody());
if (rsp.getErrcode() == 0) {
......
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