|
@@ -76,13 +76,15 @@ public class DingServiceImpl implements DingService{
|
|
OapiMessageCorpconversationAsyncsendV2Request.Head head = new OapiMessageCorpconversationAsyncsendV2Request.Head();
|
|
OapiMessageCorpconversationAsyncsendV2Request.Head head = new OapiMessageCorpconversationAsyncsendV2Request.Head();
|
|
OapiMessageCorpconversationAsyncsendV2Request.Body body = new OapiMessageCorpconversationAsyncsendV2Request.Body();
|
|
OapiMessageCorpconversationAsyncsendV2Request.Body body = new OapiMessageCorpconversationAsyncsendV2Request.Body();
|
|
List<Form> forms = oa.getBody().getForm();
|
|
List<Form> forms = oa.getBody().getForm();
|
|
- List<OapiMessageCorpconversationAsyncsendV2Request.Form> dingForms = new ArrayList<>(forms.size());
|
|
|
|
- for (Form form : forms) {
|
|
|
|
- OapiMessageCorpconversationAsyncsendV2Request.Form dingForm = new OapiMessageCorpconversationAsyncsendV2Request.Form();
|
|
|
|
- BeanUtils.copyProperties(form,dingForm);
|
|
|
|
- dingForms.add(dingForm);
|
|
|
|
|
|
+ if(forms != null) {
|
|
|
|
+ List<OapiMessageCorpconversationAsyncsendV2Request.Form> dingForms = new ArrayList<>(forms.size());
|
|
|
|
+ for (Form form : forms) {
|
|
|
|
+ OapiMessageCorpconversationAsyncsendV2Request.Form dingForm = new OapiMessageCorpconversationAsyncsendV2Request.Form();
|
|
|
|
+ BeanUtils.copyProperties(form, dingForm);
|
|
|
|
+ dingForms.add(dingForm);
|
|
|
|
+ }
|
|
|
|
+ body.setForm(dingForms);
|
|
}
|
|
}
|
|
- body.setForm(dingForms);
|
|
|
|
entity.setMessageUrl(oa.getMessageUrl());
|
|
entity.setMessageUrl(oa.getMessageUrl());
|
|
entity.setPcMessageUrl(oa.getPcMessageUrl());
|
|
entity.setPcMessageUrl(oa.getPcMessageUrl());
|
|
BeanUtils.copyProperties(oa.getHead(),head);
|
|
BeanUtils.copyProperties(oa.getHead(),head);
|