钉钉推送测试

This commit is contained in:
wulin 2020-11-19 09:16:54 +08:00
parent 972b1b9f04
commit 0df32f1153
2 changed files with 3 additions and 3 deletions

View File

@ -360,7 +360,7 @@ public class DingTalkUtil {
thirdMsgSendRecord.setRemark(json.getString("errmsg"));
msg = thirdMsgSendRecord.getRemark();
}
logger.info("发送消息{}", thirdMsgSendRecord);
}catch (ApiException e) {
e.printStackTrace();
thirdMsgSendRecord.setStatus(6);
@ -368,7 +368,7 @@ public class DingTalkUtil {
msg = thirdMsgSendRecord.getRemark();
}
thirdMsgSendRecordService.insert(thirdMsgSendRecord);
thirdMsgSendRecordService.insertThirdMsgSendRecord(thirdMsgSendRecord);
return msg;
}

View File

@ -354,7 +354,7 @@ public class DingtalkBusiness {
@Override
public void run() {
logger.info("开始批量推送消息,数量{}, appid", toStaffids.size(), appid);
logger.info("开始批量推送消息,数量{}, appid{}", toStaffids.size(), appid);
ThirdAppConfig thirdAppConfig = thirdAppConfigService.getByAppId(appid);
String token = dingTalkUtil.getAccessTokenWitchEntity(thirdAppConfig);
for (StaffSimpleInfo info:toStaffids