日历同步
continuous-integration/drone/push Build is passing Details

于相涌/robot_optimize
YXY 1 year ago
parent cdf2e8dd5e
commit 085b806494

@ -43,6 +43,8 @@ public class LarkTaskCallback extends CallbackAbstract {
JSONObject jsonObject = JSONObject.parseObject(message); JSONObject jsonObject = JSONObject.parseObject(message);
JSONObject event = jsonObject.getJSONObject("event"); JSONObject event = jsonObject.getJSONObject("event");
request.setLarkTaskId(event.getString("task_id")); request.setLarkTaskId(event.getString("task_id"));
JSONObject header = jsonObject.getJSONObject("header");
request.setAppId(header.getString("app_id"));
} }
@Override @Override

@ -57,7 +57,7 @@ public class LarkTaskCallbackOperate extends LarkAbstract {
} }
LarkCompanyRelation companyRelation = larkCompanyRelationService.getByAppIdAndType(event.getAppId(), AppType.MULTIDIMENSIONAL_TABLE.getCode()); LarkCompanyRelation companyRelation = larkCompanyRelationService.getByAppIdAndType(event.getAppId(), AppType.MULTIDIMENSIONAL_TABLE.getCode());
if (companyRelation == null){ if (companyRelation == null){
throw new RuntimeException(String.format("eventId:{} appId:{} appType:{} 不存在对应的lark_company配置",event.getId(),event.getAppId(),AppType.MULTIDIMENSIONAL_TABLE.getCode())); throw new RuntimeException(String.format("eventId:{%s} appId:{%s} appType:{%s} 不存在对应的lark_company配置",event.getId(),event.getAppId(),AppType.MULTIDIMENSIONAL_TABLE.getCode()));
} }
request.setAppId(companyRelation.getAppId()); request.setAppId(companyRelation.getAppId());
request.setAppSecret(companyRelation.getSecret()); request.setAppSecret(companyRelation.getSecret());

Loading…
Cancel
Save