Skip to content

发送oa消息失败,要怎么解决? #9

Description

@gclsoft

请求数据的json结构中oa参数对应的值中body参数对应的值中file_count参数对应的值不为整数类型的字符串

            // 创建oa消息
            MessageBody.OABody oaBody = new MessageBody.OABody();
            oaBody.setMessage_url("http://www.baidu.com");
            Head head = new Head();
            head.setText("head.text");
            head.setBgcolor("FFBBBBBB");
            oaBody.setHead(head);



Exception in thread "main" com.dingtalk.open.client.common.ServiceException: 请求数据的json结构中oa参数对应的值中body参数对应的值中file_count参数对应的值不为整数类型的字符串
	at com.dingtalk.open.client.transport.OpenServiceProxy.invoke(OpenServiceProxy.java:408)
	at com.sun.proxy.$Proxy4.sendToCorpConversation(Unknown Source)
	at com.alibaba.dingtalk.openapi.demo.message.MessageHelper.send(MessageHelper.java:28)
	at com.alibaba.dingtalk.openapi.demo.Demo.main(Demo.java:191)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions