NutzCN Logo
问答 nutz 生成获取小程序二维码代码?
发布于 2222天前 作者 qq_e3b6dba3 1353 次浏览 复制 上一个帖子 下一个帖子
标签:
求代码,借鉴下

5 回复

兽哥,这个我看了,用到项目里好多报错,好多是自己写方法吧?

String url = "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token="+access_token;

         JSONObject paramJson = new JSONObject();
         //{"scene":123456,"path": "pages/index?query=1", "width": 430}
         paramJson.put("scene", "a=1234567890");

         paramJson.put("width", 430);


        String re= HttpKit.post(url,paramJson.toString());

```

我觉得对着文档用org.nutz.http就能写好吧? 还可以贡献到nutzwx项目哦

我是这样写的,HttpKit.post返回的字符串,下一步就做了转换为字节

添加回复
请先登陆
回到顶部