+1,同样的场景问题
企业微信群二维码获取接口希望能够有一个群二维码获取的接口,我们的场景是会定期,比如故障拉群处理,并且将二维码分享出来,可以让想了解故障处理进度的人,自行扫码进来。希望能够有 API 支持获取当前群二维码的功能
2021-03-16jdk1.8和这Windows一起出现也可能出现这个问题
企业微信 会话内容存档 获取媒体文件接口调用问题?请问这个获取媒体文件(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","zJ6k0naVVQ--gt9PUSSEvs03zW_nlDVmjAkPOTAfrew")); String priKey = "-----BEGIN RSA PRIVATE KEY-----\n" + "MIIEowIBAAKCAQEAjzJfnYgy8gI/UdR9OMzMh2/Svtz6ynPJdgqWX0qCm7361g04\n" + "Sz/g+aJGtqu8jRJNg3rxQhezoy5mc+//QDyL6sM0auASS+eWx2igxVahLhJEWef3\n" + "2woMrb+OHs6nJf2jBcfA494KvgkxSYXU84vl8UCHwUI839SLBSLWofb8ccFEmy9W\n" + "VSWY7EIUVV8pO8sLZ9uVWK1IrHHSrcGkx4SF913RDIxCTExj7bLqxNRklzWZgi3m\n" + "bYoIsTG6dmsGkmxagGPEtuVOI2UjpjQw1WyrN+6o+2+qpOIuoHKF5vGrPbQBL1jU\n" + "nshGs3MnwTWdxVOe+bw8a+VAqxpD5DlfdKamgQIDAQABAoIBAGNRbe3mPGeMVXyd\n" + "I6kUqrs5PPNyc2OdwVpk53z6QfJhZyu1iZjvmkuqWN9z59f0nNyXlePgapDAqwC4\n" + "sdJM7EKM17tU5HvPCc4O7ItSlYJN2yh8cnVy1+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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); } }
2020-12-25大佬,有结果了么,.是APP的官网么
在微信开放平台绑定移动应用时,需要填写的应用官网是指什么?[图片]
2020-12-06