哥们,后面解决了吗? 我也一直返回10002
会话内容存档,拉取媒体文件 10002 多次重试也不行corpid:ww27a9d16d48220da1 代码返回:报错信息----GetMediaData error 报错code:10002 调用接口:主动调取会话存档-下载附件接口 downloadMedia 调用时间点:2021-12-09 16:26:24 入参:无 sdkfield:CiA4MGNiODBiMzgxOGNlOWEwZDhkNzQxZGFjZGNlYjkzORI4TkRkZk56ZzRNVEk1T1RnNE1Ua3pNakkxTmw4eE9USXhNVGsxT0RZMFh6RTJNemt3TXpnek9EUT0aIDMxNjIzNzM5NjMzODMwMzE2NjM1NjYzMzM1MzYzOTY0 之前也有过类似问题,但是过时间了,这是今天又出现的,总结出个规律好像基本都是客户发给监控账号的视频,麻烦帮忙看下
2022-09-30public native static int GetMediaData(long sdk, String indexbuf, String sdkField, String proxy, String passwd, long timeout, long mediaData);如果没有代理请求的话,代理请求参数和代理密码是不是可以直接不填呢? 我这边直接给了空串(""),但是返回码也是10002。
会话存档拉取媒体文件 100021、10002 这个错误码代表什么意思 2、我这边拉取会话消息同时拉取媒体文件的时候,是可以拉取到媒体文件的,但是我单独起一个进程使用已存入数据库中的 sdkfileid 拉取媒体文件的时候报10002错误,这是为什么呢
2022-09-30public native static int GetMediaData(long sdk, String indexbuf, String sdkField, String proxy, String passwd, long timeout, long mediaData); 如果没有代理请求的话,代理和passwd参数是否可以直接传递 "" 串呢? 我也是一直报10002错误
企业微信 会话内容存档 获取媒体文件接口调用问题?请问这个获取媒体文件(GetMediaData)的接口 调用错误码10000是什么意思呀? 我获取聊天记录(GetChatData)这个接口已经调通了 ,但是获取媒体文件这个接口一直返回10000 有没有大佬遇到这个问题呀 [图片] 完整代码 package com.tencent.wework; import com.tencent.wework.Finance; import java.io.*; public class sdkdemo { public static void main(String[] args){ args = new String[6]; args[0] = "1";// 查询类型 args[1] = "0";// seq args[2] = "999";// limit args[3] = ""; args[4] = ""; args[5] = "3";// timeout long sdk = Finance.NewSdk(); System.out.println(Finance.Init(sdk, "wwd08coe7d775abaaa","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3K+S9olnPbwd04YOw4u5UmouhyC7N0z2K8AO6zo\n" + "IkzCQtWQS1B1uaPE/stG7I/iy0CI6q46nSly5pajBBGQc+Y5ixRf23hEjGgca556\n" + "1pDyMs0Nb0J2AGDcr8olrbT1KwBvg8oWHOlA4ZkCgYAmC+pONXD+SwBl7qBjbqY8\n" + "A3qgGk8Y+GFEdXbn+XMjKfARu5mhdJuakYXpwfyiizUS/qaut0NCPfGD4Cr62Zgy\n" + "SRo8YMuWJSyr15ZJ1KrjrDDHtiutYkH959+dOBT7ga8NOH6lxB8Ujd+VYopX4nG0\n" + "2XQFFwHxUI36GwaJXcSbgQKBgEe4VERZNTHF9p2UASD6j62aGTLXP1qaVmj2ESRo\n" + "+B/KNPbn9fdVUoUChU/Hz4VDWg9JuLbXHUFIpQl5+ZPNj/tOM3MXKF8jh/t7m57d\n" + "CfX1+P+v95RFihqUFdabcb5cG5PPQ3bVbclP0FeCi7rPgrTWwMsypN91alKivAxb\n" + "9CLBAoGBALfb5SEupOoyIUetiWhOc1vlmP+71rJEXUEYwm0CMmfKZRW+I1A8qTE+\n" + "DVT6iUMVt6jj8L/YiMzjUh8y8HLcp4mlldzdfyjssZg6v2hABJcnID6o3DcTXA8k\n" + "8uMmaZZ0qY4oUzwgZa7bf/C//3mKlRUMoBYOT/LAksZlySIBXoST\n" + "-----END RSA PRIVATE KEY-----\n"; long ret = 0; if (args[0].equals("1")) { //获取消息 int seq = Integer.parseInt(args[1]); int limit = Integer.parseInt(args[2]); long slice = Finance.NewSlice(); ret = Finance.GetChatData(sdk, seq, limit, args[3], args[4], Integer.parseInt(args[5]), slice); if (ret != 0) { System.out.println("getchatdata ret " + ret); return; } System.out.println("getchatdata :" + Finance.GetContentFromSlice(slice)); Finance.FreeSlice(slice); } else if (args[0].equals("2")) { String indexbuf = ""; String sdkField = ""; String proxy=""; String passwd =""; long timeout=3; while(true){ long media_data = Finance.NewMediaData(); System.out.println("sdk="+sdk); System.out.println("media_data="+media_data); ret = Finance.GetMediaData(sdk, indexbuf, sdkField , proxy , passwd , timeout, media_data); System.out.println("getmediadata ret:" + ret); if(ret!=0){ return; } System.out.printf("getmediadata outindex len:%d, data_len:%d, is_finis:%d\n",Finance.GetIndexLen(media_data),Finance.GetDataLen(media_data), Finance.IsMediaDataFinish(media_data)); try { FileOutputStream outputStream =new FileOutputStream(new File("/home/qspace/upload/media_data"),true); outputStream.write(Finance.GetData(media_data)); outputStream.close(); } catch (Exception e) { e.printStackTrace(); } if(Finance.IsMediaDataFinish(media_data) == 1) { // need free media_data Finance.FreeMediaData(media_data); break; } else { indexbuf = Finance.GetOutIndexBuf(media_data); // need free media_data Finance.FreeMediaData(media_data); } } }else if (args[0].equals("3")) { //消息解密 long msg = Finance.NewSlice(); ret = Finance.DecryptData(sdk,args[1] ,args[2], msg); if (ret != 0) { System.out.println("getchatdata ret " + ret); return; } System.out.println("decrypt ret:" + ret + " msg:" + Finance.GetContentFromSlice(msg)); Finance.FreeSlice(msg); } else { System.out.println("wrong args " + args[0]); } Finance.DestroySdk(sdk); } }
2022-09-30