生成二维码

main
zhangshengli 4 months ago
parent d589a4b267
commit 10fe442f78

@ -361,8 +361,9 @@ public class SocialClientServiceImpl implements SocialClientService {
} }
{"errcode":0,"errmsg":"ok","url_link":"https:\/\/wxaurl.cn\/OeiPo041PJe"} {"errcode":0,"errmsg":"ok","url_link":"https:\/\/wxaurl.cn\/OeiPo041PJe"}
*/ */
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
jsonObject.putOnce("path", "packageC/temporary/temporary"); jsonObject.putOnce("path", "pages/index/index");
jsonObject.putOnce("query", "r="+getLoginUserId()); jsonObject.putOnce("query", "r="+getLoginUserId());
jsonObject.putOnce("env_version", "develop"); jsonObject.putOnce("env_version", "develop");
String result = HttpUtil.post("https://api.weixin.qq.com/wxa/generate_urllink?access_token=ACCESS_TOKEN".replace("ACCESS_TOKEN", token.getStr("access_token")), jsonObject.toString()); String result = HttpUtil.post("https://api.weixin.qq.com/wxa/generate_urllink?access_token=ACCESS_TOKEN".replace("ACCESS_TOKEN", token.getStr("access_token")), jsonObject.toString());

Loading…
Cancel
Save