回调接口配置
continuous-integration/drone/push Build is passing Details

于相涌/mail
YXY 2 years ago
parent c548168d20
commit c9403190df

@ -30,7 +30,7 @@ public class LarkCallBackFactory {
String eventType = null; String eventType = null;
if (jsonObject.containsKey("header")){ if (jsonObject.containsKey("header")){
eventType = jsonObject.getJSONObject("header").getString("event_type"); eventType = jsonObject.getJSONObject("header").getString("event_type");
}else{ }else if(jsonObject.containsKey("event")){
eventType = jsonObject.getJSONObject("event").getString("type"); eventType = jsonObject.getJSONObject("event").getString("type");
} }
CallBackTypeEnum callBackTypeEnum = CallBackTypeEnum.getByCode(eventType); CallBackTypeEnum callBackTypeEnum = CallBackTypeEnum.getByCode(eventType);

Loading…
Cancel
Save