使用企业微信会话存档的sdk,
本地开发是. 根据demo
结果为 0 =Finance.GetChatData
但是调用Finance.GetContentFromSlice 提示如下
{"errcode":41001,"errmsg":"access_token missing, hint: [1617764300_108_2d72bf42fb0a4eab42f9dcdc01ddca31], from ip: 121.227.25.62, more info at https://open.work.weixin.qq.com/devtool/query?e=41001","chatdata":[]}
access_token 参数没有传给接口。
public String getContent(String param) { long sdk = Finance.NewSdk(); Finance.Init(sdk, "", ""); long ret = 0; long slice = Finance.NewSlice(); ret = Finance.GetChatData(sdk, 0, 100, "", "", 60, slice); if (ret != 0) { System.out.println("getchatdata ret " + ret); } String contentFromSlice = Finance.GetContentFromSlice(slice); System.out.println("GetContentFromSlice :" + contentFromSlice); Finance.FreeSlice(slice); Finance.DestroySdk(sdk); return contentFromSlice; } z这是我写的代码